> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corsair.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# PayPal API reference

> API reference for the PayPal plugin in Corsair: every `paypal.api.*` operation with its input and output types, taken from the plugin's Zod schemas.

> [!NOTE]
>
> **New to Corsair?** See [API access](https://docs.corsair.dev/concepts/api.md), [authentication](https://docs.corsair.dev/concepts/auth.md), and [error handling](https://docs.corsair.dev/concepts/error-handling).

## Balances

### get

`balances.get`

Get the account balances per currency, optionally as of a date

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.balances.get({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `as_of_time` | `string` | No | List balances in the response at the date time provided, will return the last refreshed balance in the system when not provided. |
| `currency_code` | `string` | No | Filters the transactions in the response by a [three-character ISO-4217 currency code](https://docs.corsair.dev/api/rest/reference/currency-codes/) for the PayPal transaction currency. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `balances` | `object[] \| null` | No | An array of balance detail objects. |
| `account_id` | `string \| null` | No | The PayPal payer ID, which is a masked version of the PayPal account number intended for use with third parties. The account number is reversibly encrypted and a proprietary variant of Base32 is used to encode the result. |
| `as_of_time` | `string \| null` | No | The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional.Note: The regular expression provides guidance but does not reject all invalid dates. |
| `last_refresh_time` | `string \| null` | No | The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional.Note: The regular expression provides guidance but does not reject all invalid dates. |

> [accordion] balances full type
>
> ```ts theme={null}
> {
>   currency?: string | null,
>   primary?: boolean | null,
>   total_balance?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   available_balance?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   withheld_balance?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null
> }[] | null
> ```

***

## Disputes

### acceptClaim

`disputes.acceptClaim`

Accept claim

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.disputes.acceptClaim({ id: '5O190127TN364715T' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the dispute for which to provide the supporting information. |
| `accept-claim-document` | `string \| object \| custom` | No | A file with evidence. |
| `input` | `Record<string, any>` | No | The JSON part named `input`: for evidence, `{ evidences: [{ evidence_type, evidence_info, notes, documents }] }`. |

> [accordion] accept-claim-document full type
>
> ```ts theme={null}
> string | {
>   url: string,
>   filename?: string,
>   contentType?: string
> } | {
>   base64: string,
>   filename?: string,
>   contentType?: string
> } | custom
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links/). |

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### acceptOffer

`disputes.acceptOffer`

Accept offer to resolve dispute

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.disputes.acceptOffer({ id: '5O190127TN364715T' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the dispute for which to provide the supporting information. |
| `note` | `string` | No | The customer notes about accepting of offer. PayPal can but the merchant cannot view these notes. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links/). |

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### acknowledgeReturnItem

`disputes.acknowledgeReturnItem`

Acknowledge returned item

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.disputes.acknowledgeReturnItem({ id: '5O190127TN364715T' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the dispute for which to provide the supporting information. |
| `acknowledgement_document` | `string \| object \| custom` | No | A file with evidence. |
| `input` | `Record<string, any>` | No | The JSON part named `input`: for evidence, `{ evidences: [{ evidence_type, evidence_info, notes, documents }] }`. |

> [accordion] acknowledgement\_document full type
>
> ```ts theme={null}
> string | {
>   url: string,
>   filename?: string,
>   contentType?: string
> } | {
>   base64: string,
>   filename?: string,
>   contentType?: string
> } | custom
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links/). |

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### adjudicate

`disputes.adjudicate`

Settle dispute

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.disputes.adjudicate({ id: '5O190127TN364715T', adjudication_outcome: 'BUYER_FAVOR' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the dispute for which to provide the supporting information. |
| `adjudication_outcome` | `BUYER_FAVOR \| SELLER_FAVOR` | Yes | The outcome of the adjudication. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links/). |

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### appeal

`disputes.appeal`

Appeal dispute

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.disputes.appeal({ id: '5O190127TN364715T' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the dispute for which to provide the supporting information. |
| `evidence-file` | `string \| object \| custom` | No | A file with evidence. |
| `input` | `Record<string, any>` | No | The JSON part named `input`: for evidence, `{ evidences: [{ evidence_type, evidence_info, notes, documents }] }`. |

> [accordion] evidence-file full type
>
> ```ts theme={null}
> string | {
>   url: string,
>   filename?: string,
>   contentType?: string
> } | {
>   base64: string,
>   filename?: string,
>   contentType?: string
> } | custom
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links/). |

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### denyOffer

`disputes.denyOffer`

Deny offer to resolve dispute

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.disputes.denyOffer({ id: '5O190127TN364715T', note: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the dispute for which to provide the supporting information. |
| `note` | `string` | Yes | The customer notes about the denial of offer. PayPal can but the merchant cannot view these notes. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links/). |

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### escalate

`disputes.escalate`

Escalate dispute to claim

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.disputes.escalate({ id: '5O190127TN364715T' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the dispute for which to provide the supporting information. |
| `note` | `string` | No | The notes about the escalation of the dispute to a claim. |
| `buyer_escalation_reason` | `any` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links/). |

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### get

`disputes.get`

Show dispute details

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.disputes.get({ id: '5O190127TN364715T' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the dispute for which to provide the supporting information. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `dispute_id` | `string \| null` | No | The ID of the dispute. |
| `create_time` | `string \| null` | No | The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional.Note: The regular expression provides guidance but does not reject all invalid dates. |
| `update_time` | `string \| null` | No | The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional.Note: The regular expression provides guidance but does not reject all invalid dates. |
| `disputed_transactions` | `object[] \| null` | No | An array of transactions for which disputes were created. |
| `reason` | `string \| null` | No | The reason for the item-level dispute. For information about the required information for each dispute reason and associated evidence type, see dispute reasons. |
| `status` | `string \| null` | No | The overall status of the dispute, constant for all the parties involved at anytime during the dispute lifecycle. |
| `dispute_amount` | `object \| null` | No | The currency and amount for a financial transaction, such as a balance or payment due. |
| `dispute_asset` | `object \| null` | No | The details needed to represent a specific cryptocurrency balance, such as its symbol and quantity. |
| `fee_policy` | `object \| null` | No | Policy that determines whether the fee needs to be charged, retained or returned while moving the money as part of dispute process. |
| `external_reason_code` | `string \| null` | No | The code that identifies the reason for the credit card chargeback. Each card issuer follows their own standards for defining reason type, code, and its format. For more details about the external reason code, see the card issue site. Available for only unbranded transactions. |
| `dispute_outcome` | `object \| null` | No | The outcome of a dispute. |
| `adjudications` | `object[] \| null` | No | The Teammate Adjudication details for the dispute. |
| `money_movements` | `object[] \| null` | No | DEPRECATED The Money movement details for the dispute. |
| `fund_movements` | `object[] \| null` | No | The movements of fund due to the dispute. |
| `dispute_life_cycle_stage` | `string \| null` | No | The stage in the dispute lifecycle. |
| `dispute_channel` | `string \| null` | No | The channel where the customer created the dispute. |
| `messages` | `object[] \| null` | No | An array of customer- or merchant-posted messages for the dispute. |
| `extensions` | `object \| null` | No | The extended properties for the dispute. Includes additional information for a dispute category, such as billing disputes, the original transaction ID, and the correct amount. |
| `evidences` | `object[] \| null` | No | An array of evidence documents. |
| `buyer_response_due_date` | `string \| null` | No | The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional.Note: The regular expression provides guidance but does not reject all invalid dates. |
| `seller_response_due_date` | `string \| null` | No | The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional.Note: The regular expression provides guidance but does not reject all invalid dates. |
| `offer` | `object \| null` | No | The merchant-proposed offer for a dispute. |
| `refund_details` | `object \| null` | No | The refund details. |
| `communication_details` | `object \| null` | No | The contact details that a merchant provides to the customer to use to share their evidence documents. |
| `supporting_info` | `object[] \| null` | No | An array of all the supporting information that are associated to this dispute. |
| `allowed_response_options` | `object \| null` | No | The allowed response options for the buyer/seller update actions. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links/). |

> [accordion] disputed\_transactions full type
>
> ```ts theme={null}
> {
>   buyer_transaction_id?: string | null,
>   seller_transaction_id?: string | null,
>   reference_id?: string | null,
>   create_time?: string | null,
>   transaction_status?: string | null,
>   gross_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   gross_asset?: {
>     asset_symbol?: string | null,
>     quantity?: string | null,
>     quantity_in_subunits?: string | null,
>     decimals?: number | null
>   } | null,
>   invoice_number?: string | null,
>   custom?: string | null,
>   buyer?: {
>     name?: string | null
>   } | null,
>   seller?: {
>     email?: string | null,
>     merchant_id?: string | null,
>     name?: string | null
>   } | null,
>   items?: {
>     item_id?: string | null,
>     item_name?: string | null,
>     item_description?: string | null,
>     item_quantity?: string | null,
>     partner_transaction_id?: string | null,
>     reason?: string | null,
>     dispute_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     notes?: string | null,
>     item_type?: string | null,
>     product_details?: any | null,
>     service_details?: any | null,
>     booking_details?: any | null,
>     digital_download_details?: any | null,
>     cancellation_details?: any | null,
>     agreed_refund_details?: any | null
>   }[] | null,
>   payment_processor?: any | null
> }[] | null
> ```

> [accordion] dispute\_amount full type
>
> ```ts theme={null}
> {
>   currency_code?: string | null,
>   value?: string | null
> } | null
> ```

> [accordion] dispute\_asset full type
>
> ```ts theme={null}
> {
>   asset_symbol?: string | null,
>   quantity?: string | null,
>   quantity_in_subunits?: string | null,
>   decimals?: number | null
> } | null
> ```

> [accordion] fee\_policy full type
>
> ```ts theme={null}
> {
> } | null
> ```

> [accordion] dispute\_outcome full type
>
> ```ts theme={null}
> {
>   outcome_code?: string | null,
>   outcome_reason?: string | null,
>   amount_refunded?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   asset_refunded?: {
>     asset_symbol?: string | null,
>     quantity?: string | null,
>     quantity_in_subunits?: string | null,
>     decimals?: number | null
>   } | null
> } | null
> ```

> [accordion] adjudications full type
>
> ```ts theme={null}
> {
>   type?: string | null,
>   adjudication_time?: string | null,
>   reason?: string | null,
>   dispute_life_cycle_stage?: string | null
> }[] | null
> ```

> [accordion] money\_movements full type
>
> ```ts theme={null}
> {
>   affected_party?: string | null,
>   amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   asset?: {
>     asset_symbol?: string | null,
>     quantity?: string | null,
>     quantity_in_subunits?: string | null,
>     decimals?: number | null
>   } | null,
>   initiated_time?: string | null,
>   type?: string | null,
>   reason?: string | null
> }[] | null
> ```

> [accordion] fund\_movements full type
>
> ```ts theme={null}
> {
>   party?: string | null,
>   amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   asset?: {
>     asset_symbol?: string | null,
>     quantity?: string | null,
>     quantity_in_subunits?: string | null,
>     decimals?: number | null
>   } | null,
>   initiated_time?: string | null,
>   type?: string | null,
>   reason?: string | null
> }[] | null
> ```

> [accordion] messages full type
>
> ```ts theme={null}
> {
>   posted_by?: string | null,
>   time_posted?: string | null,
>   content?: string | null,
>   documents?: {
>     name?: string | null,
>     url?: string | null
>   }[] | null
> }[] | null
> ```

> [accordion] extensions full type
>
> ```ts theme={null}
> {
>   merchant_contacted?: boolean | null,
>   merchant_contacted_outcome?: string | null,
>   merchant_contacted_time?: string | null,
>   merchant_contacted_mode?: string | null,
>   buyer_contacted_time?: string | null,
>   buyer_contacted_channel?: string | null,
>   billing_dispute_properties?: {
>     duplicate_transaction?: {
>       received_duplicate?: boolean | null,
>       original_transaction?: {
>         buyer_transaction_id?: string | null,
>         seller_transaction_id?: string | null,
>         reference_id?: string | null,
>         create_time?: string | null,
>         transaction_status?: string | null,
>         gross_amount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null,
>         gross_asset?: {
>           asset_symbol?: string | null,
>           quantity?: string | null,
>           quantity_in_subunits?: string | null,
>           decimals?: number | null
>         } | null,
>         invoice_number?: string | null,
>         custom?: string | null,
>         buyer?: {
>           name?: string | null
>         } | null,
>         seller?: {
>           email?: string | null,
>           merchant_id?: string | null,
>           name?: string | null
>         } | null,
>         items?: {
>           item_id?: string | null,
>           item_name?: string | null,
>           item_description?: string | null,
>           item_quantity?: string | null,
>           partner_transaction_id?: string | null,
>           reason?: string | null,
>           dispute_amount?: {
>             currency_code?: string | null,
>             value?: string | null
>           } | null,
>           notes?: string | null,
>           item_type?: string | null,
>           product_details?: any | null,
>           service_details?: any | null,
>           booking_details?: any | null,
>           digital_download_details?: any | null,
>           cancellation_details?: any | null,
>           agreed_refund_details?: any | null
>         }[] | null,
>         payment_processor?: any | null
>       } | null
>     } | null,
>     incorrect_transaction_amount?: {
>       correct_transaction_amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       correct_transaction_asset?: {
>         asset_symbol?: string | null,
>         quantity?: string | null,
>         quantity_in_subunits?: string | null,
>         decimals?: number | null
>       } | null,
>       correct_transaction_time?: string | null
>     } | null,
>     payment_by_other_means?: {
>       charge_different_from_original?: boolean | null,
>       received_duplicate?: boolean | null,
>       payment_method?: string | null,
>       payment_instrument_suffix?: string | null
>     } | null,
>     credit_not_processed?: {
>       issue_type?: string | null,
>       expected_refund?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       cancellation_details?: {
>         cancellation_date?: string | null,
>         cancellation_number?: string | null,
>         cancelled?: boolean | null,
>         cancellation_mode?: string | null
>       } | null,
>       product_details?: {
>         description?: string | null,
>         product_received?: string | null,
>         product_received_time?: string | null,
>         expected_delivery_date?: string | null,
>         sub_reasons?: string[] | null,
>         purchase_url?: string | null,
>         return_details?: {
>           return_time?: string | null,
>           mode?: string | null,
>           receipt?: boolean | null,
>           return_confirmation_number?: string | null,
>           returned?: boolean | null
>         } | null
>       } | null,
>       service_details?: {
>         description?: string | null,
>         service_started?: string | null,
>         note?: string | null,
>         sub_reasons?: string[] | null,
>         purchase_url?: string | null
>       } | null,
>       agreed_refund_details?: {
>         merchant_agreed_refund?: boolean | null,
>         merchant_agreed_refund_time?: string | null
>       } | null
>     } | null,
>     canceled_recurring_billing?: {
>       expected_refund?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       cancellation_details?: {
>         cancellation_date?: string | null,
>         cancellation_number?: string | null,
>         cancelled?: boolean | null,
>         cancellation_mode?: string | null
>       } | null
>     } | null
>   } | null,
>   merchandize_dispute_properties?: {
>     issue_type?: string | null,
>     product_details?: {
>       description?: string | null,
>       product_received?: string | null,
>       product_received_time?: string | null,
>       expected_delivery_date?: string | null,
>       sub_reasons?: string[] | null,
>       purchase_url?: string | null,
>       return_details?: {
>         return_time?: string | null,
>         mode?: string | null,
>         receipt?: boolean | null,
>         return_confirmation_number?: string | null,
>         returned?: boolean | null
>       } | null
>     } | null,
>     service_details?: {
>       description?: string | null,
>       service_started?: string | null,
>       note?: string | null,
>       sub_reasons?: string[] | null,
>       purchase_url?: string | null
>     } | null,
>     cancellation_details?: {
>       cancellation_date?: string | null,
>       cancellation_number?: string | null,
>       cancelled?: boolean | null,
>       cancellation_mode?: string | null
>     } | null,
>     return_shipping_address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       address_line_3?: string | null,
>       admin_area_4?: string | null,
>       admin_area_3?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null,
>       address_details?: {
>         street_number?: string | null,
>         street_name?: string | null,
>         street_type?: string | null,
>         delivery_service?: string | null,
>         building_name?: string | null,
>         sub_building?: string | null
>       } | null
>     } | null
>   } | null,
>   reported_source?: string | null
> } | null
> ```

> [accordion] evidences full type
>
> ```ts theme={null}
> {
>   evidence_type?: string | null,
>   evidence_info?: {
>     tracking_info?: {
>       carrier_name?: string | null,
>       carrier_name_other?: string | null,
>       tracking_url?: string | null,
>       tracking_number?: string | null
>     }[] | null,
>     refund_ids?: string[] | null
>   } | null,
>   documents?: {
>     name?: string | null,
>     url?: string | null
>   }[] | null,
>   notes?: string | null,
>   source?: string | null,
>   date?: string | null,
>   item_id?: string | null,
>   item_type?: string | null,
>   action_info?: {
>     action?: string | null,
>     response_option?: string | null,
>     mandatory?: boolean | null
>   } | null,
>   dispute_life_cycle_stage?: string | null
> }[] | null
> ```

> [accordion] offer full type
>
> ```ts theme={null}
> {
>   buyer_requested_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   seller_offered_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   offer_type?: string | null,
>   history?: {
>     offer_time?: string | null,
>     actor?: string | null,
>     event_type?: string | null,
>     offer_type?: string | null,
>     offer_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     notes?: string | null,
>     dispute_life_cycle_stage?: string | null
>   }[] | null
> } | null
> ```

> [accordion] refund\_details full type
>
> ```ts theme={null}
> {
>   allowed_refund_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null
> } | null
> ```

> [accordion] communication\_details full type
>
> ```ts theme={null}
> {
>   email?: string | null,
>   note?: string | null,
>   time_posted?: string | null
> } | null
> ```

> [accordion] supporting\_info full type
>
> ```ts theme={null}
> {
>   notes?: string | null,
>   documents?: {
>     name?: string | null,
>     url?: string | null
>   }[] | null,
>   source?: string | null,
>   provided_time?: string | null,
>   dispute_life_cycle_stage?: string | null
> }[] | null
> ```

> [accordion] allowed\_response\_options full type
>
> ```ts theme={null}
> {
>   acknowledge_return_item?: {
>     acknowledgement_types?: string[] | null
>   } | null,
>   accept_claim?: {
>     accept_claim_types?: string[] | null
>   } | null,
>   make_offer?: {
>     offer_types?: string[] | null
>   } | null
> } | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### list

`disputes.list`

List disputes

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.disputes.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `start_time` | `string` | No | Filters the disputes in the response by a creation date and time. The start time must be within the last 180 days. Value is in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). For example, *`yyyy`*-*`MM`*-*`dd`*`T`*`HH`*:*`mm`*:*`ss`*.*`SSS`*`Z`.You can specify either but not both the `start_time` and `disputed_transaction_id` query parameters. |
| `disputed_transaction_id` | `string` | No | Filters the disputes in the response by a transaction, by ID.You can specify either but not both the `start_time` and `disputed_transaction_id` query parameter. |
| `page_size` | `number` | No | Limits the number of disputes in the response to this value. |
| `next_page_token` | `string` | No | The token that describes the next page of results to fetch. The list disputes call returns this token in the HATEOAS links in the response. |
| `dispute_state` | `string` | No | Filters the disputes in the response by a state. Separate multiple values with a comma (`,`). When you specify more than one dispute\_state, the response lists disputes that belong to any of the specified dispute\_state. |
| `update_time_before` | `string` | No | The date and time when the dispute was last updated, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). For example, *`yyyy`*-*`MM`*-*`dd`*`T`*`HH`*:*`mm`*:*`ss`*.*`SSS`*`Z`. update\_time\_before must be within the last 180 days and the default is the current time. |
| `update_time_after` | `string` | No | The date and time when the dispute was last updated, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). For example, *`yyyy`*-*`MM`*-*`dd`*`T`*`HH`*:*`mm`*:*`ss`*.*`SSS`*`Z`. update\_time\_after must be within the last 180 days and the default is the maximum time (180 days) supported. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `items` | `object[] \| null` | No | An array of disputes that match the filter criteria. Sorted in latest to earliest creation time order. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links/). |

> [accordion] items full type
>
> ```ts theme={null}
> {
>   dispute_id?: string | null,
>   create_time?: string | null,
>   update_time?: string | null,
>   reason?: string | null,
>   status?: string | null,
>   dispute_state?: string | null,
>   dispute_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   dispute_asset?: {
>     asset_symbol?: string | null,
>     quantity?: string | null,
>     quantity_in_subunits?: string | null,
>     decimals?: number | null
>   } | null,
>   dispute_life_cycle_stage?: string | null,
>   dispute_channel?: string | null,
>   buyer_response_due_date?: string | null,
>   seller_response_due_date?: string | null,
>   links?: {
>     href?: string | null,
>     rel?: string | null,
>     method?: string | null
>   }[] | null
> }[] | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### makeOffer

`disputes.makeOffer`

Make offer to resolve dispute

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.disputes.makeOffer({ id: '5O190127TN364715T', note: 'example', offer_type: 'REFUND' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the dispute for which to provide the supporting information. |
| `note` | `string` | Yes | The merchant's notes about the offer. |
| `offer_amount` | `object` | No | The currency and amount for a financial transaction, such as a balance or payment due. |
| `return_shipping_address` | `object` | No | The portable international postal address. Maps to [AddressValidationMetadata](https://github.com/googlei18n/libaddressinput/wiki/AddressValidationMetadata) and HTML 5.1 [Autofilling form controls: the autocomplete attribute](https://www.w3.org/TR/html51/sec-forms.html#autofilling-form-controls-the-autocomplete-attribute). |
| `invoice_id` | `string` | No | The merchant-provided ID of the invoice for the refund. This optional value maps the refund to an invoice ID in the merchant's system. |
| `offer_type` | `REFUND \| REFUND_WITH_RETURN \| REFUND_WITH_REPLACEMENT \| REPLACEMENT_WITHOUT_REFUND` | Yes | The merchant-proposed offer type for the dispute. |

> [accordion] offer\_amount full type
>
> ```ts theme={null}
> {
>   currency_code: string,
>   value: string
> }
> ```

> [accordion] return\_shipping\_address full type
>
> ```ts theme={null}
> {
>   address_line_1?: string,
>   address_line_2?: string,
>   address_line_3?: string,
>   admin_area_4?: string,
>   admin_area_3?: string,
>   admin_area_2?: string,
>   admin_area_1?: string,
>   postal_code?: string,
>   country_code: string,
>   address_details?: {
>     street_number?: string,
>     street_name?: string,
>     street_type?: string,
>     delivery_service?: string,
>     building_name?: string,
>     sub_building?: string
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links/). |

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### provideEvidence

`disputes.provideEvidence`

Provide evidence

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.disputes.provideEvidence({ id: '5O190127TN364715T' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the dispute for which to provide the supporting information. |
| `evidence-file` | `string \| object \| custom` | No | A file with evidence. |
| `input` | `Record<string, any>` | No | The JSON part named `input`: for evidence, `{ evidences: [{ evidence_type, evidence_info, notes, documents }] }`. |

> [accordion] evidence-file full type
>
> ```ts theme={null}
> string | {
>   url: string,
>   filename?: string,
>   contentType?: string
> } | {
>   base64: string,
>   filename?: string,
>   contentType?: string
> } | custom
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links/). |

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### provideSupportingInfo

`disputes.provideSupportingInfo`

Provide supporting information for dispute

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.disputes.provideSupportingInfo({ id: '5O190127TN364715T' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the dispute for which to provide the supporting information. |
| `supporting document` | `string \| object \| custom` | No | A file with evidence. |
| `input` | `Record<string, any>` | No | The JSON part named `input`: for evidence, `{ evidences: [{ evidence_type, evidence_info, notes, documents }] }`. |

> [accordion] supporting document full type
>
> ```ts theme={null}
> string | {
>   url: string,
>   filename?: string,
>   contentType?: string
> } | {
>   base64: string,
>   filename?: string,
>   contentType?: string
> } | custom
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links/). |

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### requireEvidence

`disputes.requireEvidence`

Update dispute status

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.disputes.requireEvidence({ id: '5O190127TN364715T', action: 'BUYER_EVIDENCE' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the dispute for which to provide the supporting information. |
| `action` | `BUYER_EVIDENCE \| SELLER_EVIDENCE` | Yes | The action. Indicates whether the state change enables the customer or merchant to submit evidence. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links/). |

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### sendMessage

`disputes.sendMessage`

Send message about dispute to other party

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.disputes.sendMessage({ id: '5O190127TN364715T' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the dispute for which to provide the supporting information. |
| `message_document` | `string \| object \| custom` | No | A file that contains any additional info about the message posted. |
| `input` | `Record<string, any>` | No | The JSON part named `input`: for evidence, `{ evidences: [{ evidence_type, evidence_info, notes, documents }] }`. |

> [accordion] message\_document full type
>
> ```ts theme={null}
> string | {
>   url: string,
>   filename?: string,
>   contentType?: string
> } | {
>   base64: string,
>   filename?: string,
>   contentType?: string
> } | custom
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links/). |

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### update

`disputes.update`

Partially update dispute

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.disputes.update({
	id: '5O190127TN364715T',
	patch: [{ op: 'add' }],
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the dispute for which to provide the supporting information. |
| `patch` | `object[]` | Yes | An array of JSON patch objects to apply partial updates to resources. |

> [accordion] patch full type
>
> ```ts theme={null}
> {
>   op: add | remove | replace | move | copy | test,
>   path?: string,
>   value?: any,
>   from?: string
> }[]
> ```

**Output:** `object`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   links?: {
>     href?: string | null,
>     rel?: string | null,
>     method?: string | null
>   }[] | null
> } | {
>   success: true
> }
> ```

***

## Invoices

### accountingConnections

`invoices.accountingConnections`

List Connections

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.invoices.accountingConnections({});
```

**Input:** *empty object*

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `connections` | `object[] \| null` | No | An array of connection-level details. |

> [accordion] connections full type
>
> ```ts theme={null}
> {
>   platform_name?: string | null,
>   last_sync_time?: string | null,
>   last_sync_status?: string | null
> }[] | null
> ```

***

### accountingSync

`invoices.accountingSync`

List Connection Status for an Invoice

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.invoices.accountingSync({ id: '1001' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The invoice id of the account. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the invoice. This property supports Unicode. |
| `connection_status` | `object[] \| null` | No | An array of connection-level details. |

> [accordion] connection\_status full type
>
> ```ts theme={null}
> {
>   connections?: {
>     platform_name?: string | null,
>     last_sync_time?: string | null,
>     last_sync_status?: string | null
>   }[] | null
> }[] | null
> ```

***

### cancel

`invoices.cancel`

Cancel sent invoice

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.invoices.cancel({ invoice_id: 'INV2-Z56S-5LLA-Q52L-CPZ5' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `invoice_id` | `string` | Yes | The ID of the draft invoice to delete. |
| `subject` | `string` | No | The subject of the email that is sent as a notification to the recipient.Note: User-provided values for this field will not be honored and the subject will always be defaulted to a system-defined value. |
| `note` | `string` | No | A note to the payer.Note: User-provided values for this field will not be honored and the note will always be defaulted to a system-defined value. |
| `send_to_invoicer` | `boolean` | No | Indicates whether to send a copy of the email to the merchant. |
| `send_to_recipient` | `boolean` | No | Indicates whether to send a copy of the email to the recipient. |
| `additional_recipients` | `string[]` | No | An array of one or more CC: emails to which notifications are sent. If you omit this parameter, a notification is sent to all CC: email addresses that are part of the invoice.Note: Valid values are email addresses in the `additional_recipients` value associated with the invoice. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | PayPal accepted the call; it answered with no body (204). |

***

### create

`invoices.create`

Create draft invoice

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.invoices.create({
	detail: { currency_code: 'USD', invoice_number: 'CORS-1001' },
	primary_recipients: [{
		billing_info: { email_address: 'ada@example.com' },
	}],
	items: [{
		name: 'Consulting',
		quantity: '2',
		unit_amount: { currency_code: 'USD', value: '100.00' },
	}],
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `detail` | `object` | Yes | The details of the invoice. Includes invoice number, date, payment terms, and audit metadata. |
| `invoicer` | `object` | No | The invoicer business information that appears on the invoice. |
| `primary_recipients` | `object[]` | No | The billing and shipping information. Includes name, email, address, phone and language. |
| `additional_recipients` | `string[]` | No | An array of one or more CC: emails to which notifications are sent. If you omit this parameter, a notification is sent to all CC: email addresses that are part of the invoice.Note: Valid values are email addresses in the `additional_recipients` value associated with the invoice. |
| `items` | `object[]` | No | An array of invoice line item information. |
| `configuration` | `object` | No | The invoice configuration details. Includes partial payment, tip, and tax calculated after discount. |
| `amount` | `object` | No | The invoice amount summary of item total, discount, tax total, and shipping. |
| `payments` | `object` | No | An array of payments registered against the invoice. |
| `refunds` | `object` | No | The invoicing refund details. Includes the refund type, date, amount, and method. |
| `links` | `object[]` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] detail full type
>
> ```ts theme={null}
> {
>   reference?: string,
>   currency_code: string,
>   note?: string,
>   terms_and_conditions?: string,
>   memo?: string,
>   attachments?: {
>     id?: string,
>     reference_url?: string,
>     content_type?: string,
>     create_time?: string,
>     size?: string
>   }[],
>   invoice_number?: string,
>   invoice_date?: string,
>   payment_term?: {
>     term_type?: DUE_ON_RECEIPT | DUE_ON_DATE_SPECIFIED | NET_10 | NET_15 | NET_30 | NET_45 | NET_60 | NET_90 | NO_DUE_DATE,
>     due_date?: string
>   }
> }
> ```

> [accordion] invoicer full type
>
> ```ts theme={null}
> {
>   business_name?: string,
>   name?: {
>     prefix?: string,
>     given_name?: string,
>     surname?: string,
>     middle_name?: string,
>     suffix?: string,
>     alternate_full_name?: string,
>     full_name?: string
>   },
>   address?: {
>     address_line_1?: string,
>     address_line_2?: string,
>     address_line_3?: string,
>     admin_area_4?: string,
>     admin_area_3?: string,
>     admin_area_2?: string,
>     admin_area_1?: string,
>     postal_code?: string,
>     country_code: string,
>     address_details?: {
>       street_number?: string,
>       street_name?: string,
>       street_type?: string,
>       delivery_service?: string,
>       building_name?: string,
>       sub_building?: string
>     }
>   },
>   email_address?: string,
>   phones?: {
>     country_code: string,
>     national_number: string,
>     extension_number?: string,
>     phone_type?: FAX | HOME | MOBILE | OTHER | PAGER
>   }[],
>   website?: string,
>   tax_id?: string,
>   additional_notes?: string,
>   logo_url?: string
> }
> ```

> [accordion] primary\_recipients full type
>
> ```ts theme={null}
> {
>   billing_info?: {
>     business_name?: string,
>     name?: {
>       prefix?: string,
>       given_name?: string,
>       surname?: string,
>       middle_name?: string,
>       suffix?: string,
>       alternate_full_name?: string,
>       full_name?: string
>     },
>     address?: {
>       address_line_1?: string,
>       address_line_2?: string,
>       address_line_3?: string,
>       admin_area_4?: string,
>       admin_area_3?: string,
>       admin_area_2?: string,
>       admin_area_1?: string,
>       postal_code?: string,
>       country_code: string,
>       address_details?: {
>         street_number?: string,
>         street_name?: string,
>         street_type?: string,
>         delivery_service?: string,
>         building_name?: string,
>         sub_building?: string
>       }
>     },
>     email_address?: string,
>     phones?: {
>       country_code: string,
>       national_number: string,
>       extension_number?: string,
>       phone_type?: FAX | HOME | MOBILE | OTHER | PAGER
>     }[],
>     additional_info?: string,
>     language?: string
>   },
>   shipping_info?: {
>     business_name?: string,
>     name?: {
>       prefix?: string,
>       given_name?: string,
>       surname?: string,
>       middle_name?: string,
>       suffix?: string,
>       alternate_full_name?: string,
>       full_name?: string
>     },
>     address?: {
>       address_line_1?: string,
>       address_line_2?: string,
>       address_line_3?: string,
>       admin_area_4?: string,
>       admin_area_3?: string,
>       admin_area_2?: string,
>       admin_area_1?: string,
>       postal_code?: string,
>       country_code: string,
>       address_details?: {
>         street_number?: string,
>         street_name?: string,
>         street_type?: string,
>         delivery_service?: string,
>         building_name?: string,
>         sub_building?: string
>       }
>     }
>   }
> }[]
> ```

> [accordion] items full type
>
> ```ts theme={null}
> {
>   name: string,
>   description?: string,
>   quantity: string,
>   unit_amount: {
>     currency_code: string,
>     value: string
>   },
>   tax?: {
>     name: string,
>     percent: string,
>     tax_note?: string
>   },
>   item_date?: string,
>   discount?: {
>     percent?: string,
>     amount?: {
>       currency_code: string,
>       value: string
>     }
>   },
>   unit_of_measure?: QUANTITY | HOURS | AMOUNT
> }[]
> ```

> [accordion] configuration full type
>
> ```ts theme={null}
> {
>   tax_calculated_after_discount?: boolean,
>   tax_inclusive?: boolean,
>   allow_tip?: boolean,
>   partial_payment?: {
>     allow_partial_payment?: boolean,
>     minimum_amount_due?: {
>       currency_code: string,
>       value: string
>     }
>   },
>   has_conditional_rule?: boolean,
>   template_id?: string
> }
> ```

> [accordion] amount full type
>
> ```ts theme={null}
> {
>   currency_code?: string,
>   value?: string,
>   breakdown?: {
>     item_total?: {
>       currency_code: string,
>       value: string
>     },
>     discount?: {
>       invoice_discount?: {
>         percent?: string,
>         amount?: {
>           currency_code: string,
>           value: string
>         }
>       },
>       item_discount?: {
>         currency_code: string,
>         value: string
>       }
>     },
>     tax_total?: {
>       currency_code: string,
>       value: string
>     },
>     shipping?: {
>       amount?: {
>         currency_code: string,
>         value: string
>       },
>       tax?: {
>         name: string,
>         percent: string,
>         tax_note?: string
>       }
>     },
>     custom?: {
>       label: string,
>       amount?: {
>         currency_code: string,
>         value: string
>       }
>     }
>   }
> }
> ```

> [accordion] payments full type
>
> ```ts theme={null}
> {
>   transactions?: {
>     payment_id?: string,
>     payment_date?: string,
>     method: BANK_TRANSFER | CASH | CHECK | CREDIT_CARD | DEBIT_CARD | PAYPAL | WIRE_TRANSFER | OTHER,
>     note?: string,
>     amount?: {
>       currency_code: string,
>       value: string
>     },
>     shipping_info?: {
>       business_name?: string,
>       name?: {
>         prefix?: string,
>         given_name?: string,
>         surname?: string,
>         middle_name?: string,
>         suffix?: string,
>         alternate_full_name?: string,
>         full_name?: string
>       },
>       address?: {
>         address_line_1?: string,
>         address_line_2?: string,
>         address_line_3?: string,
>         admin_area_4?: string,
>         admin_area_3?: string,
>         admin_area_2?: string,
>         admin_area_1?: string,
>         postal_code?: string,
>         country_code: string,
>         address_details?: {
>           street_number?: string,
>           street_name?: string,
>           street_type?: string,
>           delivery_service?: string,
>           building_name?: string,
>           sub_building?: string
>         }
>       }
>     }
>   }[]
> }
> ```

> [accordion] refunds full type
>
> ```ts theme={null}
> {
>   transactions?: {
>     refund_date?: string,
>     amount?: {
>       currency_code: string,
>       value: string
>     },
>     method: BANK_TRANSFER | CASH | CHECK | CREDIT_CARD | DEBIT_CARD | PAYPAL | WIRE_TRANSFER | OTHER
>   }[]
> }
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href: string,
>   rel: string,
>   method?: GET | POST | PUT | DELETE | HEAD | CONNECT | OPTIONS | PATCH
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the invoice. |
| `parent_id` | `string \| null` | No | The parent ID to an invoice that defines the group invoice to which the invoice is related. |
| `status` | `string \| null` | No | The status of the invoice. |
| `detail` | `object \| null` | No | The details of the invoice. Includes invoice number, date, payment terms, and audit metadata. |
| `invoicer` | `object \| null` | No | The invoicer business information that appears on the invoice. |
| `primary_recipients` | `object[] \| null` | No | The billing and shipping information. Includes name, email, address, phone and language. |
| `additional_recipients` | `string[] \| null` | No | An array of one or more CC: emails to which notifications are sent. If you omit this parameter, a notification is sent to all CC: email addresses that are part of the invoice.Note: Valid values are email addresses in the `additional_recipients` value associated with the invoice. |
| `items` | `object[] \| null` | No | An array of invoice line item information. |
| `configuration` | `object \| null` | No | The invoice configuration details. Includes partial payment, tip, and tax calculated after discount. |
| `amount` | `object \| null` | No | The invoice amount summary of item total, discount, tax total, and shipping. |
| `due_amount` | `object \| null` | No | The currency and amount for a financial transaction, such as a balance or payment due. |
| `gratuity` | `object \| null` | No | The currency and amount for a financial transaction, such as a balance or payment due. |
| `payments` | `object \| null` | No | An array of payments registered against the invoice. |
| `refunds` | `object \| null` | No | The invoicing refund details. Includes the refund type, date, amount, and method. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] detail full type
>
> ```ts theme={null}
> {
>   reference?: string | null,
>   currency_code?: string | null,
>   note?: string | null,
>   terms_and_conditions?: string | null,
>   memo?: string | null,
>   attachments?: {
>     id?: string | null,
>     reference_url?: string | null,
>     content_type?: string | null,
>     create_time?: string | null,
>     size?: string | null
>   }[] | null,
>   invoice_number?: string | null,
>   invoice_date?: string | null,
>   payment_term?: {
>     term_type?: string | null,
>     due_date?: string | null
>   } | null,
>   metadata?: {
>     create_time?: string | null,
>     created_by?: string | null,
>     last_update_time?: string | null,
>     last_updated_by?: string | null,
>     cancel_time?: string | null,
>     cancelled_by?: string | null,
>     first_sent_time?: string | null,
>     last_sent_time?: string | null,
>     last_sent_by?: string | null,
>     created_by_flow?: string | null,
>     recipient_view_url?: string | null,
>     invoicer_view_url?: string | null
>   } | null
> } | null
> ```

> [accordion] invoicer full type
>
> ```ts theme={null}
> {
>   business_name?: string | null,
>   name?: {
>     prefix?: string | null,
>     given_name?: string | null,
>     surname?: string | null,
>     middle_name?: string | null,
>     suffix?: string | null,
>     alternate_full_name?: string | null,
>     full_name?: string | null
>   } | null,
>   address?: {
>     address_line_1?: string | null,
>     address_line_2?: string | null,
>     address_line_3?: string | null,
>     admin_area_4?: string | null,
>     admin_area_3?: string | null,
>     admin_area_2?: string | null,
>     admin_area_1?: string | null,
>     postal_code?: string | null,
>     country_code?: string | null,
>     address_details?: {
>       street_number?: string | null,
>       street_name?: string | null,
>       street_type?: string | null,
>       delivery_service?: string | null,
>       building_name?: string | null,
>       sub_building?: string | null
>     } | null
>   } | null,
>   email_address?: string | null,
>   phones?: {
>     country_code?: string | null,
>     national_number?: string | null,
>     extension_number?: string | null,
>     phone_type?: string | null
>   }[] | null,
>   website?: string | null,
>   tax_id?: string | null,
>   additional_notes?: string | null,
>   logo_url?: string | null
> } | null
> ```

> [accordion] primary\_recipients full type
>
> ```ts theme={null}
> {
>   billing_info?: {
>     business_name?: string | null,
>     name?: {
>       prefix?: string | null,
>       given_name?: string | null,
>       surname?: string | null,
>       middle_name?: string | null,
>       suffix?: string | null,
>       alternate_full_name?: string | null,
>       full_name?: string | null
>     } | null,
>     address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       address_line_3?: string | null,
>       admin_area_4?: string | null,
>       admin_area_3?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null,
>       address_details?: {
>         street_number?: string | null,
>         street_name?: string | null,
>         street_type?: string | null,
>         delivery_service?: string | null,
>         building_name?: string | null,
>         sub_building?: string | null
>       } | null
>     } | null,
>     email_address?: string | null,
>     phones?: {
>       country_code?: string | null,
>       national_number?: string | null,
>       extension_number?: string | null,
>       phone_type?: string | null
>     }[] | null,
>     additional_info?: string | null,
>     language?: string | null
>   } | null,
>   shipping_info?: {
>     business_name?: string | null,
>     name?: {
>       prefix?: string | null,
>       given_name?: string | null,
>       surname?: string | null,
>       middle_name?: string | null,
>       suffix?: string | null,
>       alternate_full_name?: string | null,
>       full_name?: string | null
>     } | null,
>     address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       address_line_3?: string | null,
>       admin_area_4?: string | null,
>       admin_area_3?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null,
>       address_details?: {
>         street_number?: string | null,
>         street_name?: string | null,
>         street_type?: string | null,
>         delivery_service?: string | null,
>         building_name?: string | null,
>         sub_building?: string | null
>       } | null
>     } | null
>   } | null
> }[] | null
> ```

> [accordion] items full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   name?: string | null,
>   description?: string | null,
>   quantity?: string | null,
>   unit_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   tax?: {
>     name?: string | null,
>     percent?: string | null,
>     amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     tax_note?: string | null
>   } | null,
>   item_date?: string | null,
>   discount?: {
>     percent?: string | null,
>     amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null
>   } | null,
>   unit_of_measure?: string | null
> }[] | null
> ```

> [accordion] configuration full type
>
> ```ts theme={null}
> {
>   tax_calculated_after_discount?: boolean | null,
>   tax_inclusive?: boolean | null,
>   allow_tip?: boolean | null,
>   partial_payment?: {
>     allow_partial_payment?: boolean | null,
>     minimum_amount_due?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null
>   } | null,
>   has_conditional_rule?: boolean | null,
>   template_id?: string | null
> } | null
> ```

> [accordion] amount full type
>
> ```ts theme={null}
> {
>   currency_code?: string | null,
>   value?: string | null,
>   breakdown?: {
>     item_total?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     discount?: {
>       invoice_discount?: {
>         percent?: string | null,
>         amount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null
>       } | null,
>       item_discount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null
>     } | null,
>     tax_total?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     shipping?: {
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       tax?: {
>         name?: string | null,
>         percent?: string | null,
>         amount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null,
>         tax_note?: string | null
>       } | null
>     } | null,
>     custom?: {
>       label?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null
>     } | null
>   } | null
> } | null
> ```

> [accordion] due\_amount full type
>
> ```ts theme={null}
> {
>   currency_code?: string | null,
>   value?: string | null
> } | null
> ```

> [accordion] gratuity full type
>
> ```ts theme={null}
> {
>   currency_code?: string | null,
>   value?: string | null
> } | null
> ```

> [accordion] payments full type
>
> ```ts theme={null}
> {
>   paid_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   transactions?: {
>     type?: string | null,
>     payment_id?: string | null,
>     payment_date?: string | null,
>     method?: string | null,
>     note?: string | null,
>     amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     shipping_info?: {
>       business_name?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         alternate_full_name?: string | null,
>         full_name?: string | null
>       } | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       } | null
>     } | null
>   }[] | null
> } | null
> ```

> [accordion] refunds full type
>
> ```ts theme={null}
> {
>   refund_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   transactions?: {
>     type?: string | null,
>     refund_id?: string | null,
>     refund_date?: string | null,
>     amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     method?: string | null
>   }[] | null
> } | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### delete

`invoices.delete`

Delete invoice

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.invoices.delete({ invoice_id: 'INV2-Z56S-5LLA-Q52L-CPZ5' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `invoice_id` | `string` | Yes | The ID of the draft invoice to delete. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | PayPal accepted the call; it answered with no body (204). |

***

### deletePayment

`invoices.deletePayment`

Delete external payment

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.invoices.deletePayment({ invoice_id: 'INV2-Z56S-5LLA-Q52L-CPZ5', transaction_id: 'EXTR-86F38350LX4353815' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `invoice_id` | `string` | Yes | The ID of the draft invoice to delete. |
| `transaction_id` | `string` | Yes | The ID of the external refund transaction to delete. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | PayPal accepted the call; it answered with no body (204). |

***

### deleteRefund

`invoices.deleteRefund`

Delete external refund

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.invoices.deleteRefund({ invoice_id: 'INV2-Z56S-5LLA-Q52L-CPZ5', transaction_id: 'EXTR-86F38350LX4353815' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `invoice_id` | `string` | Yes | The ID of the draft invoice to delete. |
| `transaction_id` | `string` | Yes | The ID of the external refund transaction to delete. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | PayPal accepted the call; it answered with no body (204). |

***

### generateQrCode

`invoices.generateQrCode`

Generate QR code

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.invoices.generateQrCode({ invoice_id: 'INV2-Z56S-5LLA-Q52L-CPZ5' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `invoice_id` | `string` | Yes | The ID of the draft invoice to delete. |
| `width` | `number` | No | The width, in pixels, of the QR code image. Value is from `150` to `500`. |
| `height` | `number` | No | The height, in pixels, of the QR code image. Value is from `150` to `500`. |
| `action` | `string` | No | The type of URL for which to generate a QR code. Valid values are `pay` and `details`. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `contentBase64` | `string` | No | The file, base64-encoded. Missing when the file came back as text or contentOmitted is set. |
| `text` | `string` | No | The file as text, in place of contentBase64, when it is a text file (CSV, JSON, Markdown, XML and the like) in UTF-8. |
| `contentType` | `string` | Yes | Media type of the file, for example application/pdf. |
| `byteLength` | `number` | Yes | Size of the file in bytes. |
| `filename` | `string` | No | The file name, when known. |
| `contentOmitted` | `not_requested \| over_limit` | No | Set when the content was left out: the caller did not ask for it, or the file was over the limit. |
| `fileId` | `string` | No | Where the host saved the file. Over the limit it comes in place of the content; a host that keeps every file sets it beside the content too. On Corsair it is a Files id (fil\_…): pass it to another app wherever that app takes a file URL, or read a text file or PDF with files.read\_text. |

***

### get

`invoices.get`

Show invoice details

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.invoices.get({ invoice_id: 'INV2-Z56S-5LLA-Q52L-CPZ5' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `invoice_id` | `string` | Yes | The ID of the draft invoice to delete. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the invoice. |
| `parent_id` | `string \| null` | No | The parent ID to an invoice that defines the group invoice to which the invoice is related. |
| `status` | `string \| null` | No | The status of the invoice. |
| `detail` | `object \| null` | No | The details of the invoice. Includes invoice number, date, payment terms, and audit metadata. |
| `invoicer` | `object \| null` | No | The invoicer business information that appears on the invoice. |
| `primary_recipients` | `object[] \| null` | No | The billing and shipping information. Includes name, email, address, phone and language. |
| `additional_recipients` | `string[] \| null` | No | An array of one or more CC: emails to which notifications are sent. If you omit this parameter, a notification is sent to all CC: email addresses that are part of the invoice.Note: Valid values are email addresses in the `additional_recipients` value associated with the invoice. |
| `items` | `object[] \| null` | No | An array of invoice line item information. |
| `configuration` | `object \| null` | No | The invoice configuration details. Includes partial payment, tip, and tax calculated after discount. |
| `amount` | `object \| null` | No | The invoice amount summary of item total, discount, tax total, and shipping. |
| `due_amount` | `object \| null` | No | The currency and amount for a financial transaction, such as a balance or payment due. |
| `gratuity` | `object \| null` | No | The currency and amount for a financial transaction, such as a balance or payment due. |
| `payments` | `object \| null` | No | An array of payments registered against the invoice. |
| `refunds` | `object \| null` | No | The invoicing refund details. Includes the refund type, date, amount, and method. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] detail full type
>
> ```ts theme={null}
> {
>   reference?: string | null,
>   currency_code?: string | null,
>   note?: string | null,
>   terms_and_conditions?: string | null,
>   memo?: string | null,
>   attachments?: {
>     id?: string | null,
>     reference_url?: string | null,
>     content_type?: string | null,
>     create_time?: string | null,
>     size?: string | null
>   }[] | null,
>   invoice_number?: string | null,
>   invoice_date?: string | null,
>   payment_term?: {
>     term_type?: string | null,
>     due_date?: string | null
>   } | null,
>   metadata?: {
>     create_time?: string | null,
>     created_by?: string | null,
>     last_update_time?: string | null,
>     last_updated_by?: string | null,
>     cancel_time?: string | null,
>     cancelled_by?: string | null,
>     first_sent_time?: string | null,
>     last_sent_time?: string | null,
>     last_sent_by?: string | null,
>     created_by_flow?: string | null,
>     recipient_view_url?: string | null,
>     invoicer_view_url?: string | null
>   } | null
> } | null
> ```

> [accordion] invoicer full type
>
> ```ts theme={null}
> {
>   business_name?: string | null,
>   name?: {
>     prefix?: string | null,
>     given_name?: string | null,
>     surname?: string | null,
>     middle_name?: string | null,
>     suffix?: string | null,
>     alternate_full_name?: string | null,
>     full_name?: string | null
>   } | null,
>   address?: {
>     address_line_1?: string | null,
>     address_line_2?: string | null,
>     address_line_3?: string | null,
>     admin_area_4?: string | null,
>     admin_area_3?: string | null,
>     admin_area_2?: string | null,
>     admin_area_1?: string | null,
>     postal_code?: string | null,
>     country_code?: string | null,
>     address_details?: {
>       street_number?: string | null,
>       street_name?: string | null,
>       street_type?: string | null,
>       delivery_service?: string | null,
>       building_name?: string | null,
>       sub_building?: string | null
>     } | null
>   } | null,
>   email_address?: string | null,
>   phones?: {
>     country_code?: string | null,
>     national_number?: string | null,
>     extension_number?: string | null,
>     phone_type?: string | null
>   }[] | null,
>   website?: string | null,
>   tax_id?: string | null,
>   additional_notes?: string | null,
>   logo_url?: string | null
> } | null
> ```

> [accordion] primary\_recipients full type
>
> ```ts theme={null}
> {
>   billing_info?: {
>     business_name?: string | null,
>     name?: {
>       prefix?: string | null,
>       given_name?: string | null,
>       surname?: string | null,
>       middle_name?: string | null,
>       suffix?: string | null,
>       alternate_full_name?: string | null,
>       full_name?: string | null
>     } | null,
>     address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       address_line_3?: string | null,
>       admin_area_4?: string | null,
>       admin_area_3?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null,
>       address_details?: {
>         street_number?: string | null,
>         street_name?: string | null,
>         street_type?: string | null,
>         delivery_service?: string | null,
>         building_name?: string | null,
>         sub_building?: string | null
>       } | null
>     } | null,
>     email_address?: string | null,
>     phones?: {
>       country_code?: string | null,
>       national_number?: string | null,
>       extension_number?: string | null,
>       phone_type?: string | null
>     }[] | null,
>     additional_info?: string | null,
>     language?: string | null
>   } | null,
>   shipping_info?: {
>     business_name?: string | null,
>     name?: {
>       prefix?: string | null,
>       given_name?: string | null,
>       surname?: string | null,
>       middle_name?: string | null,
>       suffix?: string | null,
>       alternate_full_name?: string | null,
>       full_name?: string | null
>     } | null,
>     address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       address_line_3?: string | null,
>       admin_area_4?: string | null,
>       admin_area_3?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null,
>       address_details?: {
>         street_number?: string | null,
>         street_name?: string | null,
>         street_type?: string | null,
>         delivery_service?: string | null,
>         building_name?: string | null,
>         sub_building?: string | null
>       } | null
>     } | null
>   } | null
> }[] | null
> ```

> [accordion] items full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   name?: string | null,
>   description?: string | null,
>   quantity?: string | null,
>   unit_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   tax?: {
>     name?: string | null,
>     percent?: string | null,
>     amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     tax_note?: string | null
>   } | null,
>   item_date?: string | null,
>   discount?: {
>     percent?: string | null,
>     amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null
>   } | null,
>   unit_of_measure?: string | null
> }[] | null
> ```

> [accordion] configuration full type
>
> ```ts theme={null}
> {
>   tax_calculated_after_discount?: boolean | null,
>   tax_inclusive?: boolean | null,
>   allow_tip?: boolean | null,
>   partial_payment?: {
>     allow_partial_payment?: boolean | null,
>     minimum_amount_due?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null
>   } | null,
>   has_conditional_rule?: boolean | null,
>   template_id?: string | null
> } | null
> ```

> [accordion] amount full type
>
> ```ts theme={null}
> {
>   currency_code?: string | null,
>   value?: string | null,
>   breakdown?: {
>     item_total?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     discount?: {
>       invoice_discount?: {
>         percent?: string | null,
>         amount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null
>       } | null,
>       item_discount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null
>     } | null,
>     tax_total?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     shipping?: {
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       tax?: {
>         name?: string | null,
>         percent?: string | null,
>         amount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null,
>         tax_note?: string | null
>       } | null
>     } | null,
>     custom?: {
>       label?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null
>     } | null
>   } | null
> } | null
> ```

> [accordion] due\_amount full type
>
> ```ts theme={null}
> {
>   currency_code?: string | null,
>   value?: string | null
> } | null
> ```

> [accordion] gratuity full type
>
> ```ts theme={null}
> {
>   currency_code?: string | null,
>   value?: string | null
> } | null
> ```

> [accordion] payments full type
>
> ```ts theme={null}
> {
>   paid_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   transactions?: {
>     type?: string | null,
>     payment_id?: string | null,
>     payment_date?: string | null,
>     method?: string | null,
>     note?: string | null,
>     amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     shipping_info?: {
>       business_name?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         alternate_full_name?: string | null,
>         full_name?: string | null
>       } | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       } | null
>     } | null
>   }[] | null
> } | null
> ```

> [accordion] refunds full type
>
> ```ts theme={null}
> {
>   refund_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   transactions?: {
>     type?: string | null,
>     refund_id?: string | null,
>     refund_date?: string | null,
>     amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     method?: string | null
>   }[] | null
> } | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### list

`invoices.list`

List invoices

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.invoices.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `page` | `number` | No | The page number to be retrieved, for the list of templates. So, a combination of `page=1` and `page_size=20` returns the first 20 templates. A combination of `page=2` and `page_size=20` returns the next 20 templates. |
| `page_size` | `number` | No | The maximum number of templates to return in the response. |
| `total_required` | `boolean` | No | Indicates whether the to show total\_pages and total\_items in the response. |
| `fields` | `string` | No | The fields to return in the response. Value is `all` or `none`. To return only the template name, ID, and default attributes, specify `none`. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `total_pages` | `number \| null` | No | The total number of pages that are available for the search criteria. Note: Clients MUST NOT assume that the value of total\_pages is constant. The value MAY change from one request to the next |
| `total_items` | `number \| null` | No | The total number of invoices that match the search criteria.Note: Clients MUST NOT assume that the value of total\_items is constant. The value MAY change from one request to the next. |
| `items` | `object[] \| null` | No | The list of invoices that match the search criteria. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] items full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   parent_id?: string | null,
>   status?: string | null,
>   detail?: {
>     reference?: string | null,
>     currency_code?: string | null,
>     note?: string | null,
>     terms_and_conditions?: string | null,
>     memo?: string | null,
>     attachments?: {
>       id?: string | null,
>       reference_url?: string | null,
>       content_type?: string | null,
>       create_time?: string | null,
>       size?: string | null
>     }[] | null,
>     invoice_number?: string | null,
>     invoice_date?: string | null,
>     payment_term?: {
>       term_type?: string | null,
>       due_date?: string | null
>     } | null,
>     metadata?: {
>       create_time?: string | null,
>       created_by?: string | null,
>       last_update_time?: string | null,
>       last_updated_by?: string | null,
>       cancel_time?: string | null,
>       cancelled_by?: string | null,
>       first_sent_time?: string | null,
>       last_sent_time?: string | null,
>       last_sent_by?: string | null,
>       created_by_flow?: string | null,
>       recipient_view_url?: string | null,
>       invoicer_view_url?: string | null
>     } | null
>   } | null,
>   invoicer?: {
>     business_name?: string | null,
>     name?: {
>       prefix?: string | null,
>       given_name?: string | null,
>       surname?: string | null,
>       middle_name?: string | null,
>       suffix?: string | null,
>       alternate_full_name?: string | null,
>       full_name?: string | null
>     } | null,
>     address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       address_line_3?: string | null,
>       admin_area_4?: string | null,
>       admin_area_3?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null,
>       address_details?: {
>         street_number?: string | null,
>         street_name?: string | null,
>         street_type?: string | null,
>         delivery_service?: string | null,
>         building_name?: string | null,
>         sub_building?: string | null
>       } | null
>     } | null,
>     email_address?: string | null,
>     phones?: {
>       country_code?: string | null,
>       national_number?: string | null,
>       extension_number?: string | null,
>       phone_type?: string | null
>     }[] | null,
>     website?: string | null,
>     tax_id?: string | null,
>     additional_notes?: string | null,
>     logo_url?: string | null
>   } | null,
>   primary_recipients?: {
>     billing_info?: {
>       business_name?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         alternate_full_name?: string | null,
>         full_name?: string | null
>       } | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       } | null,
>       email_address?: string | null,
>       phones?: {
>         country_code?: string | null,
>         national_number?: string | null,
>         extension_number?: string | null,
>         phone_type?: string | null
>       }[] | null,
>       additional_info?: string | null,
>       language?: string | null
>     } | null,
>     shipping_info?: {
>       business_name?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         alternate_full_name?: string | null,
>         full_name?: string | null
>       } | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       } | null
>     } | null
>   }[] | null,
>   additional_recipients?: string[] | null,
>   items?: {
>     id?: string | null,
>     name?: string | null,
>     description?: string | null,
>     quantity?: string | null,
>     unit_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     tax?: {
>       name?: string | null,
>       percent?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       tax_note?: string | null
>     } | null,
>     item_date?: string | null,
>     discount?: {
>       percent?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null
>     } | null,
>     unit_of_measure?: string | null
>   }[] | null,
>   configuration?: {
>     tax_calculated_after_discount?: boolean | null,
>     tax_inclusive?: boolean | null,
>     allow_tip?: boolean | null,
>     partial_payment?: {
>       allow_partial_payment?: boolean | null,
>       minimum_amount_due?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null
>     } | null,
>     has_conditional_rule?: boolean | null,
>     template_id?: string | null
>   } | null,
>   amount?: {
>     currency_code?: string | null,
>     value?: string | null,
>     breakdown?: {
>       item_total?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       discount?: {
>         invoice_discount?: {
>           percent?: string | null,
>           amount?: {
>             currency_code?: string | null,
>             value?: string | null
>           } | null
>         } | null,
>         item_discount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null
>       } | null,
>       tax_total?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       shipping?: {
>         amount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null,
>         tax?: {
>           name?: string | null,
>           percent?: string | null,
>           amount?: {
>             currency_code?: string | null,
>             value?: string | null
>           } | null,
>           tax_note?: string | null
>         } | null
>       } | null,
>       custom?: {
>         label?: string | null,
>         amount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null
>       } | null
>     } | null
>   } | null,
>   due_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   gratuity?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   payments?: {
>     paid_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     transactions?: {
>       type?: string | null,
>       payment_id?: string | null,
>       payment_date?: string | null,
>       method?: string | null,
>       note?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       shipping_info?: {
>         business_name?: string | null,
>         name?: {
>           prefix?: string | null,
>           given_name?: string | null,
>           surname?: string | null,
>           middle_name?: string | null,
>           suffix?: string | null,
>           alternate_full_name?: string | null,
>           full_name?: string | null
>         } | null,
>         address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           address_line_3?: string | null,
>           admin_area_4?: string | null,
>           admin_area_3?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null,
>           address_details?: {
>             street_number?: string | null,
>             street_name?: string | null,
>             street_type?: string | null,
>             delivery_service?: string | null,
>             building_name?: string | null,
>             sub_building?: string | null
>           } | null
>         } | null
>       } | null
>     }[] | null
>   } | null,
>   refunds?: {
>     refund_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     transactions?: {
>       type?: string | null,
>       refund_id?: string | null,
>       refund_date?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       method?: string | null
>     }[] | null
>   } | null,
>   links?: {
>     href?: string | null,
>     rel?: string | null,
>     method?: string | null
>   }[] | null
> }[] | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### nextNumber

`invoices.nextNumber`

Generate invoice number

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.invoices.nextNumber({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `fetch_id` | `boolean` | No | Optional to decide the number or ID. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `invoice_number` | `string \| null` | No | The invoice number. If you omit this value, the default is the auto-incremented number from the last number. |
| `invoice_id` | `string \| null` | No | Resource Id. |

***

### recordPayment

`invoices.recordPayment`

Record a payment received outside PayPal (cash, check, bank transfer) against an invoice

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.invoices.recordPayment({ invoice_id: 'INV2-Z56S-5LLA-Q52L-CPZ5', method: 'BANK_TRANSFER' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `invoice_id` | `string` | Yes | The ID of the draft invoice to delete. |
| `payment_id` | `string` | No | The ID for a PayPal payment transaction. Required for the `PAYPAL` payment type. |
| `payment_date` | `string` | No | The stand-alone date, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). To represent special legal values, such as a date of birth, you should use dates with no associated time or time-zone data. Whenever possible, use the standard `date_time` type. This regular expression does not validate all dates. For example, February 31 is valid and nothing is known about leap years. |
| `method` | `BANK_TRANSFER \| CASH \| CHECK \| CREDIT_CARD \| DEBIT_CARD \| PAYPAL \| WIRE_TRANSFER \| OTHER` | Yes | The payment mode or method through which the invoicer can accept the payments. |
| `note` | `string` | No | A note associated with an external cash or check payment. |
| `amount` | `object` | No | The currency and amount for a financial transaction, such as a balance or payment due. |
| `shipping_info` | `object` | No | The contact information of the user. Includes name and address. |

> [accordion] amount full type
>
> ```ts theme={null}
> {
>   currency_code: string,
>   value: string
> }
> ```

> [accordion] shipping\_info full type
>
> ```ts theme={null}
> {
>   business_name?: string,
>   name?: {
>     prefix?: string,
>     given_name?: string,
>     surname?: string,
>     middle_name?: string,
>     suffix?: string,
>     alternate_full_name?: string,
>     full_name?: string
>   },
>   address?: {
>     address_line_1?: string,
>     address_line_2?: string,
>     address_line_3?: string,
>     admin_area_4?: string,
>     admin_area_3?: string,
>     admin_area_2?: string,
>     admin_area_1?: string,
>     postal_code?: string,
>     country_code: string,
>     address_details?: {
>       street_number?: string,
>       street_name?: string,
>       street_type?: string,
>       delivery_service?: string,
>       building_name?: string,
>       sub_building?: string
>     }
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `payment_id` | `string \| null` | No | The ID for the invoice payment. |

***

### recordRefund

`invoices.recordRefund`

Record a refund made outside PayPal against an invoice

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.invoices.recordRefund({ invoice_id: 'INV2-Z56S-5LLA-Q52L-CPZ5', method: 'BANK_TRANSFER' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `invoice_id` | `string` | Yes | The ID of the draft invoice to delete. |
| `refund_date` | `string` | No | The stand-alone date, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). To represent special legal values, such as a date of birth, you should use dates with no associated time or time-zone data. Whenever possible, use the standard `date_time` type. This regular expression does not validate all dates. For example, February 31 is valid and nothing is known about leap years. |
| `amount` | `object` | No | The currency and amount for a financial transaction, such as a balance or payment due. |
| `method` | `BANK_TRANSFER \| CASH \| CHECK \| CREDIT_CARD \| DEBIT_CARD \| PAYPAL \| WIRE_TRANSFER \| OTHER` | Yes | The payment mode or method through which the invoicer can accept the payments. |

> [accordion] amount full type
>
> ```ts theme={null}
> {
>   currency_code: string,
>   value: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `refund_id` | `string \| null` | No | The ID of the refund of an invoice payment. |

***

### remind

`invoices.remind`

Send a payment reminder for an invoice by email

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.invoices.remind({ invoice_id: 'INV2-Z56S-5LLA-Q52L-CPZ5' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `invoice_id` | `string` | Yes | The ID of the draft invoice to delete. |
| `subject` | `string` | No | The subject of the email that is sent as a notification to the recipient.Note: User-provided values for this field will not be honored and the subject will always be defaulted to a system-defined value. |
| `note` | `string` | No | A note to the payer.Note: User-provided values for this field will not be honored and the note will always be defaulted to a system-defined value. |
| `send_to_invoicer` | `boolean` | No | Indicates whether to send a copy of the email to the merchant. |
| `send_to_recipient` | `boolean` | No | Indicates whether to send a copy of the email to the recipient. |
| `additional_recipients` | `string[]` | No | An array of one or more CC: emails to which notifications are sent. If you omit this parameter, a notification is sent to all CC: email addresses that are part of the invoice.Note: Valid values are email addresses in the `additional_recipients` value associated with the invoice. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | PayPal accepted the call; it answered with no body (204). |

***

### search

`invoices.search`

Search for invoices

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.invoices.search({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `page` | `number` | No | The page number to be retrieved, for the list of templates. So, a combination of `page=1` and `page_size=20` returns the first 20 templates. A combination of `page=2` and `page_size=20` returns the next 20 templates. |
| `page_size` | `number` | No | The maximum number of templates to return in the response. |
| `total_required` | `boolean` | No | Indicates whether the to show total\_pages and total\_items in the response. |
| `recipient_email` | `string` | No | Filters the search by the email address. |
| `recipient_first_name` | `string` | No | Filters the search by the recipient first name. |
| `recipient_last_name` | `string` | No | Filters the search by the recipient last name. |
| `recipient_business_name` | `string` | No | Filters the search by the recipient business name. |
| `invoice_number` | `string` | No | Filters the search by the invoice number. |
| `status` | `(DRAFT \| SENT \| SCHEDULED \| PAID \| MARKED_AS_PAID \| CANCELLED \| REFUNDED \| PARTIALLY_PAID \| PARTIALLY_REFUNDED \| MARKED_AS_REFUNDED \| UNPAID \| PAYMENT_PENDING \| AUTO_CANCELLED \| PAID_EXTERNAL \| REFUNDED_EXTERNAL \| SHARED)[]` | No | An array of status values. |
| `reference` | `string` | No | The reference data. Includes a Purchase Order (PO) number. |
| `currency_code` | `string` | No | The [three-character ISO-4217 currency code](https://docs.corsair.dev/api/rest/reference/currency-codes/) that identifies the currency. |
| `memo` | `string` | No | A private bookkeeping memo for the user. |
| `total_amount_range` | `object` | No | The amount range. |
| `invoice_date_range` | `object` | No | The date range. Filters invoices by creation date, invoice date, due date, and payment date. |
| `due_date_range` | `object` | No | The date range. Filters invoices by creation date, invoice date, due date, and payment date. |
| `payment_date_range` | `object` | No | The date and time range. Filters invoices by creation date, invoice date, due date, and payment date. |
| `creation_date_range` | `object` | No | The date and time range. Filters invoices by creation date, invoice date, due date, and payment date. |
| `archived` | `boolean` | No | Indicates whether to list merchant-archived invoices in the response. Value is:true. Response lists only merchant-archived invoices.false. Response lists only unarchived invoices.null. Response lists all invoices. |
| `fields` | `string[]` | No | A CSV file of fields to return for the user, if available. Because the invoice object can be very large, field filtering is required. Valid collection fields are items, payments, refunds, additional\_recipients\_info, and attachments. |

> [accordion] total\_amount\_range full type
>
> ```ts theme={null}
> {
>   lower_amount: {
>     currency_code: string,
>     value: string
>   },
>   upper_amount: {
>     currency_code: string,
>     value: string
>   }
> }
> ```

> [accordion] invoice\_date\_range full type
>
> ```ts theme={null}
> {
>   start: string,
>   end: string
> }
> ```

> [accordion] due\_date\_range full type
>
> ```ts theme={null}
> {
>   start: string,
>   end: string
> }
> ```

> [accordion] payment\_date\_range full type
>
> ```ts theme={null}
> {
>   start: string,
>   end: string
> }
> ```

> [accordion] creation\_date\_range full type
>
> ```ts theme={null}
> {
>   start: string,
>   end: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `total_pages` | `number \| null` | No | The total number of pages that are available for the search criteria. Note: Clients MUST NOT assume that the value of total\_pages is constant. The value MAY change from one request to the next |
| `total_items` | `number \| null` | No | The total number of invoices that match the search criteria.Note: Clients MUST NOT assume that the value of total\_items is constant. The value MAY change from one request to the next. |
| `items` | `object[] \| null` | No | The list of invoices that match the search criteria. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] items full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   parent_id?: string | null,
>   status?: string | null,
>   detail?: {
>     reference?: string | null,
>     currency_code?: string | null,
>     note?: string | null,
>     terms_and_conditions?: string | null,
>     memo?: string | null,
>     attachments?: {
>       id?: string | null,
>       reference_url?: string | null,
>       content_type?: string | null,
>       create_time?: string | null,
>       size?: string | null
>     }[] | null,
>     invoice_number?: string | null,
>     invoice_date?: string | null,
>     payment_term?: {
>       term_type?: string | null,
>       due_date?: string | null
>     } | null,
>     metadata?: {
>       create_time?: string | null,
>       created_by?: string | null,
>       last_update_time?: string | null,
>       last_updated_by?: string | null,
>       cancel_time?: string | null,
>       cancelled_by?: string | null,
>       first_sent_time?: string | null,
>       last_sent_time?: string | null,
>       last_sent_by?: string | null,
>       created_by_flow?: string | null,
>       recipient_view_url?: string | null,
>       invoicer_view_url?: string | null
>     } | null
>   } | null,
>   invoicer?: {
>     business_name?: string | null,
>     name?: {
>       prefix?: string | null,
>       given_name?: string | null,
>       surname?: string | null,
>       middle_name?: string | null,
>       suffix?: string | null,
>       alternate_full_name?: string | null,
>       full_name?: string | null
>     } | null,
>     address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       address_line_3?: string | null,
>       admin_area_4?: string | null,
>       admin_area_3?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null,
>       address_details?: {
>         street_number?: string | null,
>         street_name?: string | null,
>         street_type?: string | null,
>         delivery_service?: string | null,
>         building_name?: string | null,
>         sub_building?: string | null
>       } | null
>     } | null,
>     email_address?: string | null,
>     phones?: {
>       country_code?: string | null,
>       national_number?: string | null,
>       extension_number?: string | null,
>       phone_type?: string | null
>     }[] | null,
>     website?: string | null,
>     tax_id?: string | null,
>     additional_notes?: string | null,
>     logo_url?: string | null
>   } | null,
>   primary_recipients?: {
>     billing_info?: {
>       business_name?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         alternate_full_name?: string | null,
>         full_name?: string | null
>       } | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       } | null,
>       email_address?: string | null,
>       phones?: {
>         country_code?: string | null,
>         national_number?: string | null,
>         extension_number?: string | null,
>         phone_type?: string | null
>       }[] | null,
>       additional_info?: string | null,
>       language?: string | null
>     } | null,
>     shipping_info?: {
>       business_name?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         alternate_full_name?: string | null,
>         full_name?: string | null
>       } | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       } | null
>     } | null
>   }[] | null,
>   additional_recipients?: string[] | null,
>   items?: {
>     id?: string | null,
>     name?: string | null,
>     description?: string | null,
>     quantity?: string | null,
>     unit_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     tax?: {
>       name?: string | null,
>       percent?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       tax_note?: string | null
>     } | null,
>     item_date?: string | null,
>     discount?: {
>       percent?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null
>     } | null,
>     unit_of_measure?: string | null
>   }[] | null,
>   configuration?: {
>     tax_calculated_after_discount?: boolean | null,
>     tax_inclusive?: boolean | null,
>     allow_tip?: boolean | null,
>     partial_payment?: {
>       allow_partial_payment?: boolean | null,
>       minimum_amount_due?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null
>     } | null,
>     has_conditional_rule?: boolean | null,
>     template_id?: string | null
>   } | null,
>   amount?: {
>     currency_code?: string | null,
>     value?: string | null,
>     breakdown?: {
>       item_total?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       discount?: {
>         invoice_discount?: {
>           percent?: string | null,
>           amount?: {
>             currency_code?: string | null,
>             value?: string | null
>           } | null
>         } | null,
>         item_discount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null
>       } | null,
>       tax_total?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       shipping?: {
>         amount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null,
>         tax?: {
>           name?: string | null,
>           percent?: string | null,
>           amount?: {
>             currency_code?: string | null,
>             value?: string | null
>           } | null,
>           tax_note?: string | null
>         } | null
>       } | null,
>       custom?: {
>         label?: string | null,
>         amount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null
>       } | null
>     } | null
>   } | null,
>   due_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   gratuity?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   payments?: {
>     paid_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     transactions?: {
>       type?: string | null,
>       payment_id?: string | null,
>       payment_date?: string | null,
>       method?: string | null,
>       note?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       shipping_info?: {
>         business_name?: string | null,
>         name?: {
>           prefix?: string | null,
>           given_name?: string | null,
>           surname?: string | null,
>           middle_name?: string | null,
>           suffix?: string | null,
>           alternate_full_name?: string | null,
>           full_name?: string | null
>         } | null,
>         address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           address_line_3?: string | null,
>           admin_area_4?: string | null,
>           admin_area_3?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null,
>           address_details?: {
>             street_number?: string | null,
>             street_name?: string | null,
>             street_type?: string | null,
>             delivery_service?: string | null,
>             building_name?: string | null,
>             sub_building?: string | null
>           } | null
>         } | null
>       } | null
>     }[] | null
>   } | null,
>   refunds?: {
>     refund_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     transactions?: {
>       type?: string | null,
>       refund_id?: string | null,
>       refund_date?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       method?: string | null
>     }[] | null
>   } | null,
>   links?: {
>     href?: string | null,
>     rel?: string | null,
>     method?: string | null
>   }[] | null
> }[] | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### send

`invoices.send`

Send an invoice to its recipients by email (or mark it sent without emailing with send\_to\_recipient false)

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.invoices.send({ invoice_id: 'INV2-Z56S-5LLA-Q52L-CPZ5' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `invoice_id` | `string` | Yes | The ID of the draft invoice to delete. |
| `subject` | `string` | No | The subject of the email that is sent as a notification to the recipient.Note: User-provided values for this field will not be honored and the subject will always be defaulted to a system-defined value. |
| `note` | `string` | No | A note to the payer.Note: User-provided values for this field will not be honored and the note will always be defaulted to a system-defined value. |
| `send_to_invoicer` | `boolean` | No | Indicates whether to send a copy of the email to the merchant. |
| `send_to_recipient` | `boolean` | No | Indicates whether to send a copy of the email to the recipient. |
| `additional_recipients` | `string[]` | No | An array of one or more CC: emails to which notifications are sent. If you omit this parameter, a notification is sent to all CC: email addresses that are part of the invoice.Note: Valid values are email addresses in the `additional_recipients` value associated with the invoice. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `href` | `string \| null` | No | The complete target URL. To make the related call, combine the method with this [URI Template-formatted](https://tools.ietf.org/html/rfc6570) link. For pre-processing, include the `$`, `(`, and `)` characters. The `href` is the key HATEOAS component that links a completed call with a subsequent call. |
| `rel` | `string \| null` | No | The [link relation type](https://tools.ietf.org/html/rfc5988#section-4), which serves as an ID for a link that unambiguously describes the semantics of the link. See [Link Relations](https://www.iana.org/assignments/link-relations/link-relations.xhtml). |
| `method` | `string \| null` | No | The HTTP method required to make the related call. |

***

### templates.create

`invoices.templates.create`

Create template

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.invoices.templates.create({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `name` | `string` | No | The template name.Note: The template name must be unique. |
| `default_template` | `boolean` | No | Indicates whether this template is the default template. A invoicer can have one default template. |
| `template_info` | `object` | No | The template details. Includes invoicer business information, invoice recipients, items, and configuration. |
| `settings` | `object` | No | The template settings. Sets a template as the default template or edit template. |
| `unit_of_measure` | `QUANTITY \| HOURS \| AMOUNT` | No | The unit of measure for the invoiced item. |
| `links` | `object[]` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] template\_info full type
>
> ```ts theme={null}
> {
>   detail?: {
>     reference?: string,
>     currency_code: string,
>     note?: string,
>     terms_and_conditions?: string,
>     memo?: string,
>     attachments?: {
>       id?: string,
>       reference_url?: string,
>       content_type?: string,
>       create_time?: string,
>       size?: string
>     }[],
>     payment_term?: {
>       term_type?: DUE_ON_RECEIPT | DUE_ON_DATE_SPECIFIED | NET_10 | NET_15 | NET_30 | NET_45 | NET_60 | NET_90 | NO_DUE_DATE
>     },
>     metadata?: {
>     }
>   },
>   invoicer?: {
>     business_name?: string,
>     name?: {
>       prefix?: string,
>       given_name?: string,
>       surname?: string,
>       middle_name?: string,
>       suffix?: string,
>       alternate_full_name?: string,
>       full_name?: string
>     },
>     address?: {
>       address_line_1?: string,
>       address_line_2?: string,
>       address_line_3?: string,
>       admin_area_4?: string,
>       admin_area_3?: string,
>       admin_area_2?: string,
>       admin_area_1?: string,
>       postal_code?: string,
>       country_code: string,
>       address_details?: {
>         street_number?: string,
>         street_name?: string,
>         street_type?: string,
>         delivery_service?: string,
>         building_name?: string,
>         sub_building?: string
>       }
>     },
>     email_address?: string,
>     phones?: {
>       country_code: string,
>       national_number: string,
>       extension_number?: string,
>       phone_type?: FAX | HOME | MOBILE | OTHER | PAGER
>     }[],
>     website?: string,
>     tax_id?: string,
>     additional_notes?: string,
>     logo_url?: string
>   },
>   primary_recipients?: {
>     billing_info?: {
>       business_name?: string,
>       name?: {
>         prefix?: string,
>         given_name?: string,
>         surname?: string,
>         middle_name?: string,
>         suffix?: string,
>         alternate_full_name?: string,
>         full_name?: string
>       },
>       address?: {
>         address_line_1?: string,
>         address_line_2?: string,
>         address_line_3?: string,
>         admin_area_4?: string,
>         admin_area_3?: string,
>         admin_area_2?: string,
>         admin_area_1?: string,
>         postal_code?: string,
>         country_code: string,
>         address_details?: {
>           street_number?: string,
>           street_name?: string,
>           street_type?: string,
>           delivery_service?: string,
>           building_name?: string,
>           sub_building?: string
>         }
>       },
>       email_address?: string,
>       phones?: {
>         country_code: string,
>         national_number: string,
>         extension_number?: string,
>         phone_type?: FAX | HOME | MOBILE | OTHER | PAGER
>       }[],
>       additional_info?: string,
>       language?: string
>     },
>     shipping_info?: {
>       business_name?: string,
>       name?: {
>         prefix?: string,
>         given_name?: string,
>         surname?: string,
>         middle_name?: string,
>         suffix?: string,
>         alternate_full_name?: string,
>         full_name?: string
>       },
>       address?: {
>         address_line_1?: string,
>         address_line_2?: string,
>         address_line_3?: string,
>         admin_area_4?: string,
>         admin_area_3?: string,
>         admin_area_2?: string,
>         admin_area_1?: string,
>         postal_code?: string,
>         country_code: string,
>         address_details?: {
>           street_number?: string,
>           street_name?: string,
>           street_type?: string,
>           delivery_service?: string,
>           building_name?: string,
>           sub_building?: string
>         }
>       }
>     }
>   }[],
>   additional_recipients?: string[],
>   items?: {
>     name: string,
>     description?: string,
>     quantity: string,
>     unit_amount: {
>       currency_code: string,
>       value: string
>     },
>     tax?: {
>       name: string,
>       percent: string,
>       tax_note?: string
>     },
>     item_date?: string,
>     discount?: {
>       percent?: string,
>       amount?: {
>         currency_code: string,
>         value: string
>       }
>     },
>     unit_of_measure?: QUANTITY | HOURS | AMOUNT
>   }[],
>   configuration?: {
>     tax_calculated_after_discount?: boolean,
>     tax_inclusive?: boolean,
>     allow_tip?: boolean,
>     partial_payment?: {
>       allow_partial_payment?: boolean,
>       minimum_amount_due?: {
>         currency_code: string,
>         value: string
>       }
>     },
>     has_conditional_rule?: boolean
>   },
>   amount?: {
>     currency_code?: string,
>     value?: string,
>     breakdown?: {
>       item_total?: {
>         currency_code: string,
>         value: string
>       },
>       discount?: {
>         invoice_discount?: {
>           percent?: string,
>           amount?: {
>             currency_code: string,
>             value: string
>           }
>         },
>         item_discount?: {
>           currency_code: string,
>           value: string
>         }
>       },
>       tax_total?: {
>         currency_code: string,
>         value: string
>       },
>       shipping?: {
>         amount?: {
>           currency_code: string,
>           value: string
>         },
>         tax?: {
>           name: string,
>           percent: string,
>           tax_note?: string
>         }
>       },
>       custom?: {
>         label: string,
>         amount?: {
>           currency_code: string,
>           value: string
>         }
>       }
>     }
>   }
> }
> ```

> [accordion] settings full type
>
> ```ts theme={null}
> {
>   template_item_settings?: {
>     field_name?: ITEMS_QUANTITY | ITEMS_DESCRIPTION | ITEMS_DATE | ITEMS_DISCOUNT | ITEMS_TAX,
>     display_preference?: {
>       hidden?: boolean
>     }
>   }[],
>   template_subtotal_settings?: {
>     field_name?: DISCOUNT | SHIPPING | CUSTOM,
>     display_preference?: {
>       hidden?: boolean
>     }
>   }[]
> }
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href: string,
>   rel: string,
>   method?: GET | POST | PUT | DELETE | HEAD | CONNECT | OPTIONS | PATCH
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the template. |
| `name` | `string \| null` | No | The template name.Note: The template name must be unique. |
| `default_template` | `boolean \| null` | No | Indicates whether this template is the default template. A invoicer can have one default template. |
| `template_info` | `object \| null` | No | The template details. Includes invoicer business information, invoice recipients, items, and configuration. |
| `settings` | `object \| null` | No | The template settings. Sets a template as the default template or edit template. |
| `unit_of_measure` | `string \| null` | No | The unit of measure for the invoiced item. |
| `standard_template` | `boolean \| null` | No | Indicates whether this template is a invoicer-created custom template. The system generates non-custom templates. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] template\_info full type
>
> ```ts theme={null}
> {
>   detail?: {
>     reference?: string | null,
>     currency_code?: string | null,
>     note?: string | null,
>     terms_and_conditions?: string | null,
>     memo?: string | null,
>     attachments?: {
>       id?: string | null,
>       reference_url?: string | null,
>       content_type?: string | null,
>       create_time?: string | null,
>       size?: string | null
>     }[] | null,
>     payment_term?: {
>       term_type?: string | null
>     } | null,
>     metadata?: {
>       create_time?: string | null,
>       created_by?: string | null,
>       last_update_time?: string | null,
>       last_updated_by?: string | null
>     } | null
>   } | null,
>   invoicer?: {
>     business_name?: string | null,
>     name?: {
>       prefix?: string | null,
>       given_name?: string | null,
>       surname?: string | null,
>       middle_name?: string | null,
>       suffix?: string | null,
>       alternate_full_name?: string | null,
>       full_name?: string | null
>     } | null,
>     address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       address_line_3?: string | null,
>       admin_area_4?: string | null,
>       admin_area_3?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null,
>       address_details?: {
>         street_number?: string | null,
>         street_name?: string | null,
>         street_type?: string | null,
>         delivery_service?: string | null,
>         building_name?: string | null,
>         sub_building?: string | null
>       } | null
>     } | null,
>     email_address?: string | null,
>     phones?: {
>       country_code?: string | null,
>       national_number?: string | null,
>       extension_number?: string | null,
>       phone_type?: string | null
>     }[] | null,
>     website?: string | null,
>     tax_id?: string | null,
>     additional_notes?: string | null,
>     logo_url?: string | null
>   } | null,
>   primary_recipients?: {
>     billing_info?: {
>       business_name?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         alternate_full_name?: string | null,
>         full_name?: string | null
>       } | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       } | null,
>       email_address?: string | null,
>       phones?: {
>         country_code?: string | null,
>         national_number?: string | null,
>         extension_number?: string | null,
>         phone_type?: string | null
>       }[] | null,
>       additional_info?: string | null,
>       language?: string | null
>     } | null,
>     shipping_info?: {
>       business_name?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         alternate_full_name?: string | null,
>         full_name?: string | null
>       } | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       } | null
>     } | null
>   }[] | null,
>   additional_recipients?: string[] | null,
>   items?: {
>     id?: string | null,
>     name?: string | null,
>     description?: string | null,
>     quantity?: string | null,
>     unit_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     tax?: {
>       name?: string | null,
>       percent?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       tax_note?: string | null
>     } | null,
>     item_date?: string | null,
>     discount?: {
>       percent?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null
>     } | null,
>     unit_of_measure?: string | null
>   }[] | null,
>   configuration?: {
>     tax_calculated_after_discount?: boolean | null,
>     tax_inclusive?: boolean | null,
>     allow_tip?: boolean | null,
>     partial_payment?: {
>       allow_partial_payment?: boolean | null,
>       minimum_amount_due?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null
>     } | null,
>     has_conditional_rule?: boolean | null
>   } | null,
>   amount?: {
>     currency_code?: string | null,
>     value?: string | null,
>     breakdown?: {
>       item_total?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       discount?: {
>         invoice_discount?: {
>           percent?: string | null,
>           amount?: {
>             currency_code?: string | null,
>             value?: string | null
>           } | null
>         } | null,
>         item_discount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null
>       } | null,
>       tax_total?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       shipping?: {
>         amount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null,
>         tax?: {
>           name?: string | null,
>           percent?: string | null,
>           amount?: {
>             currency_code?: string | null,
>             value?: string | null
>           } | null,
>           tax_note?: string | null
>         } | null
>       } | null,
>       custom?: {
>         label?: string | null,
>         amount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null
>       } | null
>     } | null
>   } | null,
>   due_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null
> } | null
> ```

> [accordion] settings full type
>
> ```ts theme={null}
> {
>   template_item_settings?: {
>     field_name?: string | null,
>     display_preference?: {
>       hidden?: boolean | null
>     } | null
>   }[] | null,
>   template_subtotal_settings?: {
>     field_name?: string | null,
>     display_preference?: {
>       hidden?: boolean | null
>     } | null
>   }[] | null
> } | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### templates.delete

`invoices.templates.delete`

Delete template

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.invoices.templates.delete({ template_id: 'TEMP-19V05281TU309413B' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `template_id` | `string` | Yes | The ID of the template to delete. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | PayPal accepted the call; it answered with no body (204). |

***

### templates.get

`invoices.templates.get`

Show template details

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.invoices.templates.get({ template_id: 'TEMP-19V05281TU309413B' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `template_id` | `string` | Yes | The ID of the template to delete. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the template. |
| `name` | `string \| null` | No | The template name.Note: The template name must be unique. |
| `default_template` | `boolean \| null` | No | Indicates whether this template is the default template. A invoicer can have one default template. |
| `template_info` | `object \| null` | No | The template details. Includes invoicer business information, invoice recipients, items, and configuration. |
| `settings` | `object \| null` | No | The template settings. Sets a template as the default template or edit template. |
| `unit_of_measure` | `string \| null` | No | The unit of measure for the invoiced item. |
| `standard_template` | `boolean \| null` | No | Indicates whether this template is a invoicer-created custom template. The system generates non-custom templates. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] template\_info full type
>
> ```ts theme={null}
> {
>   detail?: {
>     reference?: string | null,
>     currency_code?: string | null,
>     note?: string | null,
>     terms_and_conditions?: string | null,
>     memo?: string | null,
>     attachments?: {
>       id?: string | null,
>       reference_url?: string | null,
>       content_type?: string | null,
>       create_time?: string | null,
>       size?: string | null
>     }[] | null,
>     payment_term?: {
>       term_type?: string | null
>     } | null,
>     metadata?: {
>       create_time?: string | null,
>       created_by?: string | null,
>       last_update_time?: string | null,
>       last_updated_by?: string | null
>     } | null
>   } | null,
>   invoicer?: {
>     business_name?: string | null,
>     name?: {
>       prefix?: string | null,
>       given_name?: string | null,
>       surname?: string | null,
>       middle_name?: string | null,
>       suffix?: string | null,
>       alternate_full_name?: string | null,
>       full_name?: string | null
>     } | null,
>     address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       address_line_3?: string | null,
>       admin_area_4?: string | null,
>       admin_area_3?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null,
>       address_details?: {
>         street_number?: string | null,
>         street_name?: string | null,
>         street_type?: string | null,
>         delivery_service?: string | null,
>         building_name?: string | null,
>         sub_building?: string | null
>       } | null
>     } | null,
>     email_address?: string | null,
>     phones?: {
>       country_code?: string | null,
>       national_number?: string | null,
>       extension_number?: string | null,
>       phone_type?: string | null
>     }[] | null,
>     website?: string | null,
>     tax_id?: string | null,
>     additional_notes?: string | null,
>     logo_url?: string | null
>   } | null,
>   primary_recipients?: {
>     billing_info?: {
>       business_name?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         alternate_full_name?: string | null,
>         full_name?: string | null
>       } | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       } | null,
>       email_address?: string | null,
>       phones?: {
>         country_code?: string | null,
>         national_number?: string | null,
>         extension_number?: string | null,
>         phone_type?: string | null
>       }[] | null,
>       additional_info?: string | null,
>       language?: string | null
>     } | null,
>     shipping_info?: {
>       business_name?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         alternate_full_name?: string | null,
>         full_name?: string | null
>       } | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       } | null
>     } | null
>   }[] | null,
>   additional_recipients?: string[] | null,
>   items?: {
>     id?: string | null,
>     name?: string | null,
>     description?: string | null,
>     quantity?: string | null,
>     unit_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     tax?: {
>       name?: string | null,
>       percent?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       tax_note?: string | null
>     } | null,
>     item_date?: string | null,
>     discount?: {
>       percent?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null
>     } | null,
>     unit_of_measure?: string | null
>   }[] | null,
>   configuration?: {
>     tax_calculated_after_discount?: boolean | null,
>     tax_inclusive?: boolean | null,
>     allow_tip?: boolean | null,
>     partial_payment?: {
>       allow_partial_payment?: boolean | null,
>       minimum_amount_due?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null
>     } | null,
>     has_conditional_rule?: boolean | null
>   } | null,
>   amount?: {
>     currency_code?: string | null,
>     value?: string | null,
>     breakdown?: {
>       item_total?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       discount?: {
>         invoice_discount?: {
>           percent?: string | null,
>           amount?: {
>             currency_code?: string | null,
>             value?: string | null
>           } | null
>         } | null,
>         item_discount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null
>       } | null,
>       tax_total?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       shipping?: {
>         amount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null,
>         tax?: {
>           name?: string | null,
>           percent?: string | null,
>           amount?: {
>             currency_code?: string | null,
>             value?: string | null
>           } | null,
>           tax_note?: string | null
>         } | null
>       } | null,
>       custom?: {
>         label?: string | null,
>         amount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null
>       } | null
>     } | null
>   } | null,
>   due_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null
> } | null
> ```

> [accordion] settings full type
>
> ```ts theme={null}
> {
>   template_item_settings?: {
>     field_name?: string | null,
>     display_preference?: {
>       hidden?: boolean | null
>     } | null
>   }[] | null,
>   template_subtotal_settings?: {
>     field_name?: string | null,
>     display_preference?: {
>       hidden?: boolean | null
>     } | null
>   }[] | null
> } | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### templates.list

`invoices.templates.list`

List templates

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.invoices.templates.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `fields` | `string` | No | The fields to return in the response. Value is `all` or `none`. To return only the template name, ID, and default attributes, specify `none`. |
| `page` | `number` | No | The page number to be retrieved, for the list of templates. So, a combination of `page=1` and `page_size=20` returns the first 20 templates. A combination of `page=2` and `page_size=20` returns the next 20 templates. |
| `page_size` | `number` | No | The maximum number of templates to return in the response. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `addresses` | `object[] \| null` | No | An array of addresses in the user's PayPal profile. |
| `emails` | `string \| null` | No | The internationalized email address.Note: Up to 64 characters are allowed before and 255 characters are allowed after the @ sign. However, the generally accepted maximum length for an email address is 254 characters. The pattern verifies that an unquoted @ sign exists. |
| `phones` | `object[] \| null` | No | An array of phone numbers in the user's PayPal profile. |
| `templates` | `object[] \| null` | No | An array of details for each template. If `fields` is `none`, returns only the template name, ID, and default status. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] addresses full type
>
> ```ts theme={null}
> {
>   address_line_1?: string | null,
>   address_line_2?: string | null,
>   address_line_3?: string | null,
>   admin_area_4?: string | null,
>   admin_area_3?: string | null,
>   admin_area_2?: string | null,
>   admin_area_1?: string | null,
>   postal_code?: string | null,
>   country_code?: string | null,
>   address_details?: {
>     street_number?: string | null,
>     street_name?: string | null,
>     street_type?: string | null,
>     delivery_service?: string | null,
>     building_name?: string | null,
>     sub_building?: string | null
>   } | null
> }[] | null
> ```

> [accordion] phones full type
>
> ```ts theme={null}
> {
>   country_code?: string | null,
>   national_number?: string | null,
>   extension_number?: string | null,
>   phone_type?: string | null
> }[] | null
> ```

> [accordion] templates full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   name?: string | null,
>   default_template?: boolean | null,
>   template_info?: {
>     detail?: {
>       reference?: string | null,
>       currency_code?: string | null,
>       note?: string | null,
>       terms_and_conditions?: string | null,
>       memo?: string | null,
>       attachments?: {
>         id?: string | null,
>         reference_url?: string | null,
>         content_type?: string | null,
>         create_time?: string | null,
>         size?: string | null
>       }[] | null,
>       payment_term?: {
>         term_type?: string | null
>       } | null,
>       metadata?: {
>         create_time?: string | null,
>         created_by?: string | null,
>         last_update_time?: string | null,
>         last_updated_by?: string | null
>       } | null
>     } | null,
>     invoicer?: {
>       business_name?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         alternate_full_name?: string | null,
>         full_name?: string | null
>       } | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       } | null,
>       email_address?: string | null,
>       phones?: {
>         country_code?: string | null,
>         national_number?: string | null,
>         extension_number?: string | null,
>         phone_type?: string | null
>       }[] | null,
>       website?: string | null,
>       tax_id?: string | null,
>       additional_notes?: string | null,
>       logo_url?: string | null
>     } | null,
>     primary_recipients?: {
>       billing_info?: {
>         business_name?: string | null,
>         name?: {
>           prefix?: string | null,
>           given_name?: string | null,
>           surname?: string | null,
>           middle_name?: string | null,
>           suffix?: string | null,
>           alternate_full_name?: string | null,
>           full_name?: string | null
>         } | null,
>         address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           address_line_3?: string | null,
>           admin_area_4?: string | null,
>           admin_area_3?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null,
>           address_details?: {
>             street_number?: string | null,
>             street_name?: string | null,
>             street_type?: string | null,
>             delivery_service?: string | null,
>             building_name?: string | null,
>             sub_building?: string | null
>           } | null
>         } | null,
>         email_address?: string | null,
>         phones?: {
>           country_code?: string | null,
>           national_number?: string | null,
>           extension_number?: string | null,
>           phone_type?: string | null
>         }[] | null,
>         additional_info?: string | null,
>         language?: string | null
>       } | null,
>       shipping_info?: {
>         business_name?: string | null,
>         name?: {
>           prefix?: string | null,
>           given_name?: string | null,
>           surname?: string | null,
>           middle_name?: string | null,
>           suffix?: string | null,
>           alternate_full_name?: string | null,
>           full_name?: string | null
>         } | null,
>         address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           address_line_3?: string | null,
>           admin_area_4?: string | null,
>           admin_area_3?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null,
>           address_details?: {
>             street_number?: string | null,
>             street_name?: string | null,
>             street_type?: string | null,
>             delivery_service?: string | null,
>             building_name?: string | null,
>             sub_building?: string | null
>           } | null
>         } | null
>       } | null
>     }[] | null,
>     additional_recipients?: string[] | null,
>     items?: {
>       id?: string | null,
>       name?: string | null,
>       description?: string | null,
>       quantity?: string | null,
>       unit_amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       tax?: {
>         name?: string | null,
>         percent?: string | null,
>         amount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null,
>         tax_note?: string | null
>       } | null,
>       item_date?: string | null,
>       discount?: {
>         percent?: string | null,
>         amount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null
>       } | null,
>       unit_of_measure?: string | null
>     }[] | null,
>     configuration?: {
>       tax_calculated_after_discount?: boolean | null,
>       tax_inclusive?: boolean | null,
>       allow_tip?: boolean | null,
>       partial_payment?: {
>         allow_partial_payment?: boolean | null,
>         minimum_amount_due?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null
>       } | null,
>       has_conditional_rule?: boolean | null
>     } | null,
>     amount?: {
>       currency_code?: string | null,
>       value?: string | null,
>       breakdown?: {
>         item_total?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null,
>         discount?: {
>           invoice_discount?: {
>             percent?: string | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             } | null
>           } | null,
>           item_discount?: {
>             currency_code?: string | null,
>             value?: string | null
>           } | null
>         } | null,
>         tax_total?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null,
>         shipping?: {
>           amount?: {
>             currency_code?: string | null,
>             value?: string | null
>           } | null,
>           tax?: {
>             name?: string | null,
>             percent?: string | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             } | null,
>             tax_note?: string | null
>           } | null
>         } | null,
>         custom?: {
>           label?: string | null,
>           amount?: {
>             currency_code?: string | null,
>             value?: string | null
>           } | null
>         } | null
>       } | null
>     } | null,
>     due_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null
>   } | null,
>   settings?: {
>     template_item_settings?: {
>       field_name?: string | null,
>       display_preference?: {
>         hidden?: boolean | null
>       } | null
>     }[] | null,
>     template_subtotal_settings?: {
>       field_name?: string | null,
>       display_preference?: {
>         hidden?: boolean | null
>       } | null
>     }[] | null
>   } | null,
>   unit_of_measure?: string | null,
>   standard_template?: boolean | null,
>   links?: {
>     href?: string | null,
>     rel?: string | null,
>     method?: string | null
>   }[] | null
> }[] | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### templates.update

`invoices.templates.update`

Fully update template

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.invoices.templates.update({ template_id: 'TEMP-19V05281TU309413B' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `template_id` | `string` | Yes | The ID of the template to delete. |
| `name` | `string` | No | The template name.Note: The template name must be unique. |
| `default_template` | `boolean` | No | Indicates whether this template is the default template. A invoicer can have one default template. |
| `template_info` | `object` | No | The template details. Includes invoicer business information, invoice recipients, items, and configuration. |
| `settings` | `object` | No | The template settings. Sets a template as the default template or edit template. |
| `unit_of_measure` | `QUANTITY \| HOURS \| AMOUNT` | No | The unit of measure for the invoiced item. |
| `links` | `object[]` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] template\_info full type
>
> ```ts theme={null}
> {
>   detail?: {
>     reference?: string,
>     currency_code: string,
>     note?: string,
>     terms_and_conditions?: string,
>     memo?: string,
>     attachments?: {
>       id?: string,
>       reference_url?: string,
>       content_type?: string,
>       create_time?: string,
>       size?: string
>     }[],
>     payment_term?: {
>       term_type?: DUE_ON_RECEIPT | DUE_ON_DATE_SPECIFIED | NET_10 | NET_15 | NET_30 | NET_45 | NET_60 | NET_90 | NO_DUE_DATE
>     },
>     metadata?: {
>     }
>   },
>   invoicer?: {
>     business_name?: string,
>     name?: {
>       prefix?: string,
>       given_name?: string,
>       surname?: string,
>       middle_name?: string,
>       suffix?: string,
>       alternate_full_name?: string,
>       full_name?: string
>     },
>     address?: {
>       address_line_1?: string,
>       address_line_2?: string,
>       address_line_3?: string,
>       admin_area_4?: string,
>       admin_area_3?: string,
>       admin_area_2?: string,
>       admin_area_1?: string,
>       postal_code?: string,
>       country_code: string,
>       address_details?: {
>         street_number?: string,
>         street_name?: string,
>         street_type?: string,
>         delivery_service?: string,
>         building_name?: string,
>         sub_building?: string
>       }
>     },
>     email_address?: string,
>     phones?: {
>       country_code: string,
>       national_number: string,
>       extension_number?: string,
>       phone_type?: FAX | HOME | MOBILE | OTHER | PAGER
>     }[],
>     website?: string,
>     tax_id?: string,
>     additional_notes?: string,
>     logo_url?: string
>   },
>   primary_recipients?: {
>     billing_info?: {
>       business_name?: string,
>       name?: {
>         prefix?: string,
>         given_name?: string,
>         surname?: string,
>         middle_name?: string,
>         suffix?: string,
>         alternate_full_name?: string,
>         full_name?: string
>       },
>       address?: {
>         address_line_1?: string,
>         address_line_2?: string,
>         address_line_3?: string,
>         admin_area_4?: string,
>         admin_area_3?: string,
>         admin_area_2?: string,
>         admin_area_1?: string,
>         postal_code?: string,
>         country_code: string,
>         address_details?: {
>           street_number?: string,
>           street_name?: string,
>           street_type?: string,
>           delivery_service?: string,
>           building_name?: string,
>           sub_building?: string
>         }
>       },
>       email_address?: string,
>       phones?: {
>         country_code: string,
>         national_number: string,
>         extension_number?: string,
>         phone_type?: FAX | HOME | MOBILE | OTHER | PAGER
>       }[],
>       additional_info?: string,
>       language?: string
>     },
>     shipping_info?: {
>       business_name?: string,
>       name?: {
>         prefix?: string,
>         given_name?: string,
>         surname?: string,
>         middle_name?: string,
>         suffix?: string,
>         alternate_full_name?: string,
>         full_name?: string
>       },
>       address?: {
>         address_line_1?: string,
>         address_line_2?: string,
>         address_line_3?: string,
>         admin_area_4?: string,
>         admin_area_3?: string,
>         admin_area_2?: string,
>         admin_area_1?: string,
>         postal_code?: string,
>         country_code: string,
>         address_details?: {
>           street_number?: string,
>           street_name?: string,
>           street_type?: string,
>           delivery_service?: string,
>           building_name?: string,
>           sub_building?: string
>         }
>       }
>     }
>   }[],
>   additional_recipients?: string[],
>   items?: {
>     name: string,
>     description?: string,
>     quantity: string,
>     unit_amount: {
>       currency_code: string,
>       value: string
>     },
>     tax?: {
>       name: string,
>       percent: string,
>       tax_note?: string
>     },
>     item_date?: string,
>     discount?: {
>       percent?: string,
>       amount?: {
>         currency_code: string,
>         value: string
>       }
>     },
>     unit_of_measure?: QUANTITY | HOURS | AMOUNT
>   }[],
>   configuration?: {
>     tax_calculated_after_discount?: boolean,
>     tax_inclusive?: boolean,
>     allow_tip?: boolean,
>     partial_payment?: {
>       allow_partial_payment?: boolean,
>       minimum_amount_due?: {
>         currency_code: string,
>         value: string
>       }
>     },
>     has_conditional_rule?: boolean
>   },
>   amount?: {
>     currency_code?: string,
>     value?: string,
>     breakdown?: {
>       item_total?: {
>         currency_code: string,
>         value: string
>       },
>       discount?: {
>         invoice_discount?: {
>           percent?: string,
>           amount?: {
>             currency_code: string,
>             value: string
>           }
>         },
>         item_discount?: {
>           currency_code: string,
>           value: string
>         }
>       },
>       tax_total?: {
>         currency_code: string,
>         value: string
>       },
>       shipping?: {
>         amount?: {
>           currency_code: string,
>           value: string
>         },
>         tax?: {
>           name: string,
>           percent: string,
>           tax_note?: string
>         }
>       },
>       custom?: {
>         label: string,
>         amount?: {
>           currency_code: string,
>           value: string
>         }
>       }
>     }
>   }
> }
> ```

> [accordion] settings full type
>
> ```ts theme={null}
> {
>   template_item_settings?: {
>     field_name?: ITEMS_QUANTITY | ITEMS_DESCRIPTION | ITEMS_DATE | ITEMS_DISCOUNT | ITEMS_TAX,
>     display_preference?: {
>       hidden?: boolean
>     }
>   }[],
>   template_subtotal_settings?: {
>     field_name?: DISCOUNT | SHIPPING | CUSTOM,
>     display_preference?: {
>       hidden?: boolean
>     }
>   }[]
> }
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href: string,
>   rel: string,
>   method?: GET | POST | PUT | DELETE | HEAD | CONNECT | OPTIONS | PATCH
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the template. |
| `name` | `string \| null` | No | The template name.Note: The template name must be unique. |
| `default_template` | `boolean \| null` | No | Indicates whether this template is the default template. A invoicer can have one default template. |
| `template_info` | `object \| null` | No | The template details. Includes invoicer business information, invoice recipients, items, and configuration. |
| `settings` | `object \| null` | No | The template settings. Sets a template as the default template or edit template. |
| `unit_of_measure` | `string \| null` | No | The unit of measure for the invoiced item. |
| `standard_template` | `boolean \| null` | No | Indicates whether this template is a invoicer-created custom template. The system generates non-custom templates. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] template\_info full type
>
> ```ts theme={null}
> {
>   detail?: {
>     reference?: string | null,
>     currency_code?: string | null,
>     note?: string | null,
>     terms_and_conditions?: string | null,
>     memo?: string | null,
>     attachments?: {
>       id?: string | null,
>       reference_url?: string | null,
>       content_type?: string | null,
>       create_time?: string | null,
>       size?: string | null
>     }[] | null,
>     payment_term?: {
>       term_type?: string | null
>     } | null,
>     metadata?: {
>       create_time?: string | null,
>       created_by?: string | null,
>       last_update_time?: string | null,
>       last_updated_by?: string | null
>     } | null
>   } | null,
>   invoicer?: {
>     business_name?: string | null,
>     name?: {
>       prefix?: string | null,
>       given_name?: string | null,
>       surname?: string | null,
>       middle_name?: string | null,
>       suffix?: string | null,
>       alternate_full_name?: string | null,
>       full_name?: string | null
>     } | null,
>     address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       address_line_3?: string | null,
>       admin_area_4?: string | null,
>       admin_area_3?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null,
>       address_details?: {
>         street_number?: string | null,
>         street_name?: string | null,
>         street_type?: string | null,
>         delivery_service?: string | null,
>         building_name?: string | null,
>         sub_building?: string | null
>       } | null
>     } | null,
>     email_address?: string | null,
>     phones?: {
>       country_code?: string | null,
>       national_number?: string | null,
>       extension_number?: string | null,
>       phone_type?: string | null
>     }[] | null,
>     website?: string | null,
>     tax_id?: string | null,
>     additional_notes?: string | null,
>     logo_url?: string | null
>   } | null,
>   primary_recipients?: {
>     billing_info?: {
>       business_name?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         alternate_full_name?: string | null,
>         full_name?: string | null
>       } | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       } | null,
>       email_address?: string | null,
>       phones?: {
>         country_code?: string | null,
>         national_number?: string | null,
>         extension_number?: string | null,
>         phone_type?: string | null
>       }[] | null,
>       additional_info?: string | null,
>       language?: string | null
>     } | null,
>     shipping_info?: {
>       business_name?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         alternate_full_name?: string | null,
>         full_name?: string | null
>       } | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       } | null
>     } | null
>   }[] | null,
>   additional_recipients?: string[] | null,
>   items?: {
>     id?: string | null,
>     name?: string | null,
>     description?: string | null,
>     quantity?: string | null,
>     unit_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     tax?: {
>       name?: string | null,
>       percent?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       tax_note?: string | null
>     } | null,
>     item_date?: string | null,
>     discount?: {
>       percent?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null
>     } | null,
>     unit_of_measure?: string | null
>   }[] | null,
>   configuration?: {
>     tax_calculated_after_discount?: boolean | null,
>     tax_inclusive?: boolean | null,
>     allow_tip?: boolean | null,
>     partial_payment?: {
>       allow_partial_payment?: boolean | null,
>       minimum_amount_due?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null
>     } | null,
>     has_conditional_rule?: boolean | null
>   } | null,
>   amount?: {
>     currency_code?: string | null,
>     value?: string | null,
>     breakdown?: {
>       item_total?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       discount?: {
>         invoice_discount?: {
>           percent?: string | null,
>           amount?: {
>             currency_code?: string | null,
>             value?: string | null
>           } | null
>         } | null,
>         item_discount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null
>       } | null,
>       tax_total?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       shipping?: {
>         amount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null,
>         tax?: {
>           name?: string | null,
>           percent?: string | null,
>           amount?: {
>             currency_code?: string | null,
>             value?: string | null
>           } | null,
>           tax_note?: string | null
>         } | null
>       } | null,
>       custom?: {
>         label?: string | null,
>         amount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null
>       } | null
>     } | null
>   } | null,
>   due_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null
> } | null
> ```

> [accordion] settings full type
>
> ```ts theme={null}
> {
>   template_item_settings?: {
>     field_name?: string | null,
>     display_preference?: {
>       hidden?: boolean | null
>     } | null
>   }[] | null,
>   template_subtotal_settings?: {
>     field_name?: string | null,
>     display_preference?: {
>       hidden?: boolean | null
>     } | null
>   }[] | null
> } | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### update

`invoices.update`

Fully update invoice

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.invoices.update({
	invoice_id: 'INV2-Z56S-5LLA-Q52L-CPZ5',
	send_to_recipient: false,
	detail: { currency_code: 'USD', invoice_number: 'CORS-1001', note: 'Thanks for your business.' },
	primary_recipients: [{
		billing_info: { email_address: 'ada@example.com' },
	}],
	items: [{
		name: 'Consulting',
		quantity: '3',
		unit_amount: { currency_code: 'USD', value: '100.00' },
	}],
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `invoice_id` | `string` | Yes | The ID of the draft invoice to delete. |
| `send_to_recipient` | `boolean` | No | Indicates whether to send the invoice update notification to the recipient. |
| `send_to_invoicer` | `boolean` | No | Indicates whether to send the invoice update notification to the merchant. |
| `detail` | `object` | Yes | The details of the invoice. Includes invoice number, date, payment terms, and audit metadata. |
| `invoicer` | `object` | No | The invoicer business information that appears on the invoice. |
| `primary_recipients` | `object[]` | No | The billing and shipping information. Includes name, email, address, phone and language. |
| `additional_recipients` | `string[]` | No | An array of one or more CC: emails to which notifications are sent. If you omit this parameter, a notification is sent to all CC: email addresses that are part of the invoice.Note: Valid values are email addresses in the `additional_recipients` value associated with the invoice. |
| `items` | `object[]` | No | An array of invoice line item information. |
| `configuration` | `object` | No | The invoice configuration details. Includes partial payment, tip, and tax calculated after discount. |
| `amount` | `object` | No | The invoice amount summary of item total, discount, tax total, and shipping. |
| `payments` | `object` | No | An array of payments registered against the invoice. |
| `refunds` | `object` | No | The invoicing refund details. Includes the refund type, date, amount, and method. |
| `links` | `object[]` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] detail full type
>
> ```ts theme={null}
> {
>   reference?: string,
>   currency_code: string,
>   note?: string,
>   terms_and_conditions?: string,
>   memo?: string,
>   attachments?: {
>     id?: string,
>     reference_url?: string,
>     content_type?: string,
>     create_time?: string,
>     size?: string
>   }[],
>   invoice_number?: string,
>   invoice_date?: string,
>   payment_term?: {
>     term_type?: DUE_ON_RECEIPT | DUE_ON_DATE_SPECIFIED | NET_10 | NET_15 | NET_30 | NET_45 | NET_60 | NET_90 | NO_DUE_DATE,
>     due_date?: string
>   }
> }
> ```

> [accordion] invoicer full type
>
> ```ts theme={null}
> {
>   business_name?: string,
>   name?: {
>     prefix?: string,
>     given_name?: string,
>     surname?: string,
>     middle_name?: string,
>     suffix?: string,
>     alternate_full_name?: string,
>     full_name?: string
>   },
>   address?: {
>     address_line_1?: string,
>     address_line_2?: string,
>     address_line_3?: string,
>     admin_area_4?: string,
>     admin_area_3?: string,
>     admin_area_2?: string,
>     admin_area_1?: string,
>     postal_code?: string,
>     country_code: string,
>     address_details?: {
>       street_number?: string,
>       street_name?: string,
>       street_type?: string,
>       delivery_service?: string,
>       building_name?: string,
>       sub_building?: string
>     }
>   },
>   email_address?: string,
>   phones?: {
>     country_code: string,
>     national_number: string,
>     extension_number?: string,
>     phone_type?: FAX | HOME | MOBILE | OTHER | PAGER
>   }[],
>   website?: string,
>   tax_id?: string,
>   additional_notes?: string,
>   logo_url?: string
> }
> ```

> [accordion] primary\_recipients full type
>
> ```ts theme={null}
> {
>   billing_info?: {
>     business_name?: string,
>     name?: {
>       prefix?: string,
>       given_name?: string,
>       surname?: string,
>       middle_name?: string,
>       suffix?: string,
>       alternate_full_name?: string,
>       full_name?: string
>     },
>     address?: {
>       address_line_1?: string,
>       address_line_2?: string,
>       address_line_3?: string,
>       admin_area_4?: string,
>       admin_area_3?: string,
>       admin_area_2?: string,
>       admin_area_1?: string,
>       postal_code?: string,
>       country_code: string,
>       address_details?: {
>         street_number?: string,
>         street_name?: string,
>         street_type?: string,
>         delivery_service?: string,
>         building_name?: string,
>         sub_building?: string
>       }
>     },
>     email_address?: string,
>     phones?: {
>       country_code: string,
>       national_number: string,
>       extension_number?: string,
>       phone_type?: FAX | HOME | MOBILE | OTHER | PAGER
>     }[],
>     additional_info?: string,
>     language?: string
>   },
>   shipping_info?: {
>     business_name?: string,
>     name?: {
>       prefix?: string,
>       given_name?: string,
>       surname?: string,
>       middle_name?: string,
>       suffix?: string,
>       alternate_full_name?: string,
>       full_name?: string
>     },
>     address?: {
>       address_line_1?: string,
>       address_line_2?: string,
>       address_line_3?: string,
>       admin_area_4?: string,
>       admin_area_3?: string,
>       admin_area_2?: string,
>       admin_area_1?: string,
>       postal_code?: string,
>       country_code: string,
>       address_details?: {
>         street_number?: string,
>         street_name?: string,
>         street_type?: string,
>         delivery_service?: string,
>         building_name?: string,
>         sub_building?: string
>       }
>     }
>   }
> }[]
> ```

> [accordion] items full type
>
> ```ts theme={null}
> {
>   name: string,
>   description?: string,
>   quantity: string,
>   unit_amount: {
>     currency_code: string,
>     value: string
>   },
>   tax?: {
>     name: string,
>     percent: string,
>     tax_note?: string
>   },
>   item_date?: string,
>   discount?: {
>     percent?: string,
>     amount?: {
>       currency_code: string,
>       value: string
>     }
>   },
>   unit_of_measure?: QUANTITY | HOURS | AMOUNT
> }[]
> ```

> [accordion] configuration full type
>
> ```ts theme={null}
> {
>   tax_calculated_after_discount?: boolean,
>   tax_inclusive?: boolean,
>   allow_tip?: boolean,
>   partial_payment?: {
>     allow_partial_payment?: boolean,
>     minimum_amount_due?: {
>       currency_code: string,
>       value: string
>     }
>   },
>   has_conditional_rule?: boolean,
>   template_id?: string
> }
> ```

> [accordion] amount full type
>
> ```ts theme={null}
> {
>   currency_code?: string,
>   value?: string,
>   breakdown?: {
>     item_total?: {
>       currency_code: string,
>       value: string
>     },
>     discount?: {
>       invoice_discount?: {
>         percent?: string,
>         amount?: {
>           currency_code: string,
>           value: string
>         }
>       },
>       item_discount?: {
>         currency_code: string,
>         value: string
>       }
>     },
>     tax_total?: {
>       currency_code: string,
>       value: string
>     },
>     shipping?: {
>       amount?: {
>         currency_code: string,
>         value: string
>       },
>       tax?: {
>         name: string,
>         percent: string,
>         tax_note?: string
>       }
>     },
>     custom?: {
>       label: string,
>       amount?: {
>         currency_code: string,
>         value: string
>       }
>     }
>   }
> }
> ```

> [accordion] payments full type
>
> ```ts theme={null}
> {
>   transactions?: {
>     payment_id?: string,
>     payment_date?: string,
>     method: BANK_TRANSFER | CASH | CHECK | CREDIT_CARD | DEBIT_CARD | PAYPAL | WIRE_TRANSFER | OTHER,
>     note?: string,
>     amount?: {
>       currency_code: string,
>       value: string
>     },
>     shipping_info?: {
>       business_name?: string,
>       name?: {
>         prefix?: string,
>         given_name?: string,
>         surname?: string,
>         middle_name?: string,
>         suffix?: string,
>         alternate_full_name?: string,
>         full_name?: string
>       },
>       address?: {
>         address_line_1?: string,
>         address_line_2?: string,
>         address_line_3?: string,
>         admin_area_4?: string,
>         admin_area_3?: string,
>         admin_area_2?: string,
>         admin_area_1?: string,
>         postal_code?: string,
>         country_code: string,
>         address_details?: {
>           street_number?: string,
>           street_name?: string,
>           street_type?: string,
>           delivery_service?: string,
>           building_name?: string,
>           sub_building?: string
>         }
>       }
>     }
>   }[]
> }
> ```

> [accordion] refunds full type
>
> ```ts theme={null}
> {
>   transactions?: {
>     refund_date?: string,
>     amount?: {
>       currency_code: string,
>       value: string
>     },
>     method: BANK_TRANSFER | CASH | CHECK | CREDIT_CARD | DEBIT_CARD | PAYPAL | WIRE_TRANSFER | OTHER
>   }[]
> }
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href: string,
>   rel: string,
>   method?: GET | POST | PUT | DELETE | HEAD | CONNECT | OPTIONS | PATCH
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the invoice. |
| `parent_id` | `string \| null` | No | The parent ID to an invoice that defines the group invoice to which the invoice is related. |
| `status` | `string \| null` | No | The status of the invoice. |
| `detail` | `object \| null` | No | The details of the invoice. Includes invoice number, date, payment terms, and audit metadata. |
| `invoicer` | `object \| null` | No | The invoicer business information that appears on the invoice. |
| `primary_recipients` | `object[] \| null` | No | The billing and shipping information. Includes name, email, address, phone and language. |
| `additional_recipients` | `string[] \| null` | No | An array of one or more CC: emails to which notifications are sent. If you omit this parameter, a notification is sent to all CC: email addresses that are part of the invoice.Note: Valid values are email addresses in the `additional_recipients` value associated with the invoice. |
| `items` | `object[] \| null` | No | An array of invoice line item information. |
| `configuration` | `object \| null` | No | The invoice configuration details. Includes partial payment, tip, and tax calculated after discount. |
| `amount` | `object \| null` | No | The invoice amount summary of item total, discount, tax total, and shipping. |
| `due_amount` | `object \| null` | No | The currency and amount for a financial transaction, such as a balance or payment due. |
| `gratuity` | `object \| null` | No | The currency and amount for a financial transaction, such as a balance or payment due. |
| `payments` | `object \| null` | No | An array of payments registered against the invoice. |
| `refunds` | `object \| null` | No | The invoicing refund details. Includes the refund type, date, amount, and method. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] detail full type
>
> ```ts theme={null}
> {
>   reference?: string | null,
>   currency_code?: string | null,
>   note?: string | null,
>   terms_and_conditions?: string | null,
>   memo?: string | null,
>   attachments?: {
>     id?: string | null,
>     reference_url?: string | null,
>     content_type?: string | null,
>     create_time?: string | null,
>     size?: string | null
>   }[] | null,
>   invoice_number?: string | null,
>   invoice_date?: string | null,
>   payment_term?: {
>     term_type?: string | null,
>     due_date?: string | null
>   } | null,
>   metadata?: {
>     create_time?: string | null,
>     created_by?: string | null,
>     last_update_time?: string | null,
>     last_updated_by?: string | null,
>     cancel_time?: string | null,
>     cancelled_by?: string | null,
>     first_sent_time?: string | null,
>     last_sent_time?: string | null,
>     last_sent_by?: string | null,
>     created_by_flow?: string | null,
>     recipient_view_url?: string | null,
>     invoicer_view_url?: string | null
>   } | null
> } | null
> ```

> [accordion] invoicer full type
>
> ```ts theme={null}
> {
>   business_name?: string | null,
>   name?: {
>     prefix?: string | null,
>     given_name?: string | null,
>     surname?: string | null,
>     middle_name?: string | null,
>     suffix?: string | null,
>     alternate_full_name?: string | null,
>     full_name?: string | null
>   } | null,
>   address?: {
>     address_line_1?: string | null,
>     address_line_2?: string | null,
>     address_line_3?: string | null,
>     admin_area_4?: string | null,
>     admin_area_3?: string | null,
>     admin_area_2?: string | null,
>     admin_area_1?: string | null,
>     postal_code?: string | null,
>     country_code?: string | null,
>     address_details?: {
>       street_number?: string | null,
>       street_name?: string | null,
>       street_type?: string | null,
>       delivery_service?: string | null,
>       building_name?: string | null,
>       sub_building?: string | null
>     } | null
>   } | null,
>   email_address?: string | null,
>   phones?: {
>     country_code?: string | null,
>     national_number?: string | null,
>     extension_number?: string | null,
>     phone_type?: string | null
>   }[] | null,
>   website?: string | null,
>   tax_id?: string | null,
>   additional_notes?: string | null,
>   logo_url?: string | null
> } | null
> ```

> [accordion] primary\_recipients full type
>
> ```ts theme={null}
> {
>   billing_info?: {
>     business_name?: string | null,
>     name?: {
>       prefix?: string | null,
>       given_name?: string | null,
>       surname?: string | null,
>       middle_name?: string | null,
>       suffix?: string | null,
>       alternate_full_name?: string | null,
>       full_name?: string | null
>     } | null,
>     address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       address_line_3?: string | null,
>       admin_area_4?: string | null,
>       admin_area_3?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null,
>       address_details?: {
>         street_number?: string | null,
>         street_name?: string | null,
>         street_type?: string | null,
>         delivery_service?: string | null,
>         building_name?: string | null,
>         sub_building?: string | null
>       } | null
>     } | null,
>     email_address?: string | null,
>     phones?: {
>       country_code?: string | null,
>       national_number?: string | null,
>       extension_number?: string | null,
>       phone_type?: string | null
>     }[] | null,
>     additional_info?: string | null,
>     language?: string | null
>   } | null,
>   shipping_info?: {
>     business_name?: string | null,
>     name?: {
>       prefix?: string | null,
>       given_name?: string | null,
>       surname?: string | null,
>       middle_name?: string | null,
>       suffix?: string | null,
>       alternate_full_name?: string | null,
>       full_name?: string | null
>     } | null,
>     address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       address_line_3?: string | null,
>       admin_area_4?: string | null,
>       admin_area_3?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null,
>       address_details?: {
>         street_number?: string | null,
>         street_name?: string | null,
>         street_type?: string | null,
>         delivery_service?: string | null,
>         building_name?: string | null,
>         sub_building?: string | null
>       } | null
>     } | null
>   } | null
> }[] | null
> ```

> [accordion] items full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   name?: string | null,
>   description?: string | null,
>   quantity?: string | null,
>   unit_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   tax?: {
>     name?: string | null,
>     percent?: string | null,
>     amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     tax_note?: string | null
>   } | null,
>   item_date?: string | null,
>   discount?: {
>     percent?: string | null,
>     amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null
>   } | null,
>   unit_of_measure?: string | null
> }[] | null
> ```

> [accordion] configuration full type
>
> ```ts theme={null}
> {
>   tax_calculated_after_discount?: boolean | null,
>   tax_inclusive?: boolean | null,
>   allow_tip?: boolean | null,
>   partial_payment?: {
>     allow_partial_payment?: boolean | null,
>     minimum_amount_due?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null
>   } | null,
>   has_conditional_rule?: boolean | null,
>   template_id?: string | null
> } | null
> ```

> [accordion] amount full type
>
> ```ts theme={null}
> {
>   currency_code?: string | null,
>   value?: string | null,
>   breakdown?: {
>     item_total?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     discount?: {
>       invoice_discount?: {
>         percent?: string | null,
>         amount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null
>       } | null,
>       item_discount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null
>     } | null,
>     tax_total?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     shipping?: {
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       tax?: {
>         name?: string | null,
>         percent?: string | null,
>         amount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null,
>         tax_note?: string | null
>       } | null
>     } | null,
>     custom?: {
>       label?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null
>     } | null
>   } | null
> } | null
> ```

> [accordion] due\_amount full type
>
> ```ts theme={null}
> {
>   currency_code?: string | null,
>   value?: string | null
> } | null
> ```

> [accordion] gratuity full type
>
> ```ts theme={null}
> {
>   currency_code?: string | null,
>   value?: string | null
> } | null
> ```

> [accordion] payments full type
>
> ```ts theme={null}
> {
>   paid_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   transactions?: {
>     type?: string | null,
>     payment_id?: string | null,
>     payment_date?: string | null,
>     method?: string | null,
>     note?: string | null,
>     amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     shipping_info?: {
>       business_name?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         alternate_full_name?: string | null,
>         full_name?: string | null
>       } | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       } | null
>     } | null
>   }[] | null
> } | null
> ```

> [accordion] refunds full type
>
> ```ts theme={null}
> {
>   refund_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   transactions?: {
>     type?: string | null,
>     refund_id?: string | null,
>     refund_date?: string | null,
>     amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     method?: string | null
>   }[] | null
> } | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

## Orders

### authorize

`orders.authorize`

Authorize the payment of an approved order (capture it later with payments.authorizations.capture)

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.orders.authorize({ id: '5O190127TN364715T' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `paypal_request_id` | `string` | No | The server stores keys for 6 hours. The API callers can request the times to up to 72 hours by speaking to their Account Manager. It is mandatory for all single-step create order calls (E.g. Create Order Request with payment source information like Card, PayPal.vault\_id, PayPal.billing\_agreement\_id, etc). |
| `prefer` | `string` | No | The preferred server response upon successful completion of the request. Value is:return=minimal. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the id, status and HATEOAS links.return=representation. The server returns a complete resource representation, including the current state of the resource. |
| `paypal_client_metadata_id` | `string` | No | A Globally Unique Identifier (GUID) value. |
| `id` | `string` | Yes | The ID of the order for which to authorize. |
| `paypal_auth_assertion` | `string` | No | Header for an API client-provided JWT assertion that identifies the merchant. Establishing the consent to act-on-behalf of a merchant is a prerequisite for using this header. |
| `payment_source` | `object` | No | — |

> [accordion] payment\_source full type
>
> ```ts theme={null}
> {
>   card?: (
>     {
>       id?: string & any,
>       name?: string,
>       number?: string,
>       expiry?: string & any,
>       security_code?: string,
>       card_type?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>       type?: (CREDIT | DEBIT | PREPAID | STORE | UNKNOWN)& any,
>       brand?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>       billing_address?: {
>         address_line_1?: string,
>         address_line_2?: string,
>         address_line_3?: string,
>         admin_area_4?: string,
>         admin_area_3?: string,
>         admin_area_2?: string,
>         admin_area_1?: string,
>         postal_code?: string,
>         country_code: string,
>         address_details?: {
>           street_number?: string,
>           street_name?: string,
>           street_type?: string,
>           delivery_service?: string,
>           building_name?: string,
>           sub_building?: string
>         }
>       }& any,
>       attributes?: {
>         customer?: {
>           id?: string,
>           email_address?: string & any,
>           phone?: {
>             phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>             phone_number: {
>               national_number: string
>             }& any
>           }& any,
>           name?: {
>             prefix?: string,
>             given_name?: string,
>             surname?: string,
>             middle_name?: string,
>             suffix?: string,
>             full_name?: string
>           }& any,
>           merchant_customer_id?: string
>         },
>         vault?: {
>           store_in_vault?: ON_SUCCESS
>         }& any,
>         verification?: {
>           method?: SCA_ALWAYS | SCA_WHEN_REQUIRED | 3D_SECURE | AVS_CVV
>         }& any
>       }& any
>     }& any
>   )& {
>     vault_id?: string & any,
>     single_use_token?: string & any,
>     stored_credential?: {
>       payment_initiator: CUSTOMER | MERCHANT,
>       payment_type: ONE_TIME | RECURRING | UNSCHEDULED,
>       usage?: FIRST | SUBSEQUENT | DERIVED,
>       previous_network_transaction_reference?: {
>         id?: string,
>         date?: string,
>         network?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>         acquirer_reference_number?: string
>       }
>     },
>     network_token?: {
>       number: string,
>       expiry: string & any,
>       cryptogram?: string,
>       eci_flag?: MASTERCARD_NON_3D_SECURE_TRANSACTION | MASTERCARD_ATTEMPTED_AUTHENTICATION_TRANSACTION | MASTERCARD_FULLY_AUTHENTICATED_TRANSACTION | FULLY_AUTHENTICATED_TRANSACTION | ATTEMPTED_AUTHENTICATION_TRANSACTION | NON_3D_SECURE_TRANSACTION,
>       token_requestor_id?: string
>     }& any,
>     experience_context?: {
>       return_url?: string & string,
>       cancel_url?: string & string
>     }& any
>   },
>   token?: {
>     id: string,
>     type: BILLING_AGREEMENT
>   },
>   paypal?: {
>     vault_id?: string & any,
>     email_address?: string & any,
>     name?: {
>       prefix?: string,
>       given_name?: string,
>       surname?: string,
>       middle_name?: string,
>       suffix?: string,
>       full_name?: string
>     }& any,
>     phone?: {
>       phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>       phone_number: {
>         national_number: string
>       }& any
>     }& any,
>     birth_date?: string & any,
>     tax_info?: {
>       tax_id: string,
>       tax_id_type: BR_CPF | BR_CNPJ
>     }& any,
>     address?: {
>       address_line_1?: string,
>       address_line_2?: string,
>       address_line_3?: string,
>       admin_area_4?: string,
>       admin_area_3?: string,
>       admin_area_2?: string,
>       admin_area_1?: string,
>       postal_code?: string,
>       country_code: string,
>       address_details?: {
>         street_number?: string,
>         street_name?: string,
>         street_type?: string,
>         delivery_service?: string,
>         building_name?: string,
>         sub_building?: string
>       }
>     }& any,
>     attributes?: {
>       customer?: {
>         id?: string,
>         email_address?: string & any,
>         phone?: {
>           phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>           phone_number: {
>             national_number: string
>           }& any
>         }& any,
>         name?: {
>           prefix?: string,
>           given_name?: string,
>           surname?: string,
>           middle_name?: string,
>           suffix?: string,
>           full_name?: string
>         }& any,
>         merchant_customer_id?: string
>       },
>       vault?: {
>         store_in_vault?: ON_SUCCESS,
>         description?: string,
>         usage_pattern?: IMMEDIATE | DEFERRED | RECURRING_PREPAID | RECURRING_POSTPAID | THRESHOLD_PREPAID | THRESHOLD_POSTPAID | SUBSCRIPTION_PREPAID | SUBSCRIPTION_POSTPAID | UNSCHEDULED_PREPAID | UNSCHEDULED_POSTPAID | INSTALLMENT_PREPAID | INSTALLMENT_POSTPAID,
>         shipping?: {
>           name?: {
>             prefix?: string,
>             given_name?: string,
>             surname?: string,
>             middle_name?: string,
>             suffix?: string,
>             full_name?: string
>           }& any,
>           email_address?: string & any,
>           phone_number?: {
>             country_code: string,
>             national_number: string,
>             extension_number?: string
>           }& any,
>           type?: SHIPPING | PICKUP_IN_PERSON | PICKUP_IN_STORE | PICKUP_FROM_PERSON,
>           options?: (
>             {
>               id: string,
>               label: string,
>               type?: (SHIPPING | PICKUP | PICKUP_IN_STORE | PICKUP_FROM_PERSON)& any,
>               amount?: {
>                 currency_code: string,
>                 value: string
>               }& any,
>               selected: boolean
>             }& any
>           )[],
>           address?: {
>             address_line_1?: string,
>             address_line_2?: string,
>             address_line_3?: string,
>             admin_area_4?: string,
>             admin_area_3?: string,
>             admin_area_2?: string,
>             admin_area_1?: string,
>             postal_code?: string,
>             country_code: string,
>             address_details?: {
>               street_number?: string,
>               street_name?: string,
>               street_type?: string,
>               delivery_service?: string,
>               building_name?: string,
>               sub_building?: string
>             }
>           }& any
>         }& any,
>         usage_type?: MERCHANT | PLATFORM,
>         customer_type?: CONSUMER | BUSINESS,
>         permit_multiple_payment_tokens?: boolean
>       }& any
>     }& any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       contact_preference?: NO_CONTACT_INFO | UPDATE_CONTACT_INFO | RETAIN_CONTACT_INFO,
>       return_url?: string & any,
>       cancel_url?: string & any,
>       app_switch_context?: {
>         native_app?: {
>         },
>         mobile_web?: {
>           buyer_user_agent?: string
>         }
>       }& any,
>       landing_page?: LOGIN | GUEST_CHECKOUT | NO_PREFERENCE | BILLING,
>       user_action?: CONTINUE | PAY_NOW,
>       payment_method_preference?: UNRESTRICTED | IMMEDIATE_PAYMENT_REQUIRED,
>       order_update_callback_config?: {
>         callback_events: (SHIPPING_ADDRESS | SHIPPING_OPTIONS)[],
>         callback_url: string
>       }& any
>     },
>     billing_agreement_id?: string,
>     stored_credential?: {
>       payment_initiator: CUSTOMER | MERCHANT,
>       charge_pattern?: (IMMEDIATE | DEFERRED | RECURRING_PREPAID | RECURRING_POSTPAID | THRESHOLD_PREPAID | THRESHOLD_POSTPAID | SUBSCRIPTION_PREPAID | SUBSCRIPTION_POSTPAID | UNSCHEDULED_PREPAID | UNSCHEDULED_POSTPAID | INSTALLMENT_PREPAID | INSTALLMENT_POSTPAID)& any,
>       usage_pattern?: IMMEDIATE | DEFERRED | RECURRING_PREPAID | RECURRING_POSTPAID | THRESHOLD_PREPAID | THRESHOLD_POSTPAID | SUBSCRIPTION_PREPAID | SUBSCRIPTION_POSTPAID | UNSCHEDULED_PREPAID | UNSCHEDULED_POSTPAID | INSTALLMENT_PREPAID | INSTALLMENT_POSTPAID,
>       usage?: FIRST | SUBSEQUENT | DERIVED
>     }
>   }& any,
>   bancontact?: {
>     name: string & any,
>     country_code: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   blik?: {
>     name: string & any,
>     country_code: string & any,
>     email?: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any,
>       consumer_ip?: string & any,
>       consumer_user_agent?: string
>     }& any,
>     level_0?: {
>       auth_code: string
>     }& any,
>     one_click?: {
>       auth_code?: string,
>       consumer_reference: string,
>       alias_label?: string,
>       alias_key?: string
>     }& any
>   }& any,
>   eps?: {
>     name: string & any,
>     country_code: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   giropay?: {
>     name: string & any,
>     country_code: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   ideal?: {
>     name: string & any,
>     country_code: string & any,
>     bic?: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   mybank?: {
>     name: string & any,
>     country_code: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   p24?: {
>     name: string & any,
>     email: string & any,
>     country_code: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   sofort?: {
>     name: string & any,
>     country_code: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   trustly?: {
>     name: string & any,
>     country_code: string & any,
>     email: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   apple_pay?: {
>     id?: string,
>     name?: string & any,
>     email_address?: string & any,
>     phone_number?: {
>       national_number: string
>     }& any,
>     decrypted_token?: {
>       transaction_amount?: {
>         currency_code: string,
>         value: string
>       }& any,
>       tokenized_card: {
>         id?: string & any,
>         name?: string,
>         number?: string,
>         expiry?: string & any,
>         security_code?: string,
>         card_type?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>         type?: (CREDIT | DEBIT | PREPAID | STORE | UNKNOWN)& any,
>         brand?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>         billing_address?: {
>           address_line_1?: string,
>           address_line_2?: string,
>           address_line_3?: string,
>           admin_area_4?: string,
>           admin_area_3?: string,
>           admin_area_2?: string,
>           admin_area_1?: string,
>           postal_code?: string,
>           country_code: string,
>           address_details?: {
>             street_number?: string,
>             street_name?: string,
>             street_type?: string,
>             delivery_service?: string,
>             building_name?: string,
>             sub_building?: string
>           }
>         }& any,
>         attributes?: {
>           customer?: {
>             id?: string,
>             email_address?: string & any,
>             phone?: {
>               phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>               phone_number: {
>                 national_number: string
>               }& any
>             }& any,
>             name?: {
>               prefix?: string,
>               given_name?: string,
>               surname?: string,
>               middle_name?: string,
>               suffix?: string,
>               full_name?: string
>             }& any,
>             merchant_customer_id?: string
>           },
>           vault?: {
>             store_in_vault?: ON_SUCCESS
>           }& any,
>           verification?: {
>             method?: SCA_ALWAYS | SCA_WHEN_REQUIRED | 3D_SECURE | AVS_CVV
>           }& any
>         }& any
>       }& any,
>       device_manufacturer_id?: string,
>       payment_data_type?: 3DSECURE | EMV,
>       payment_data?: {
>         cryptogram?: string,
>         eci_indicator?: string,
>         emv_data?: string,
>         pin?: string
>       }& any
>     }& any,
>     stored_credential?: {
>       payment_initiator: CUSTOMER | MERCHANT,
>       payment_type: ONE_TIME | RECURRING | UNSCHEDULED,
>       usage?: FIRST | SUBSEQUENT | DERIVED,
>       previous_network_transaction_reference?: {
>         id?: string,
>         date?: string,
>         network?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>         acquirer_reference_number?: string
>       }
>     },
>     vault_id?: string & any,
>     attributes?: {
>       customer?: {
>         id?: string,
>         email_address?: string & any,
>         phone?: {
>           phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>           phone_number: {
>             national_number: string
>           }& any
>         }& any,
>         name?: {
>           prefix?: string,
>           given_name?: string,
>           surname?: string,
>           middle_name?: string,
>           suffix?: string,
>           full_name?: string
>         }& any
>       },
>       vault?: {
>         store_in_vault: ON_SUCCESS
>       }
>     },
>     experience_context?: {
>       return_url: string & any,
>       cancel_url: string & any
>     }
>   }& any,
>   google_pay?: {
>     name?: string & any,
>     email_address?: string & any,
>     phone_number?: {
>       country_code?: string,
>       national_number: string
>     }& any,
>     card?: {
>       name?: string,
>       number?: string,
>       expiry?: string & any,
>       type?: (CREDIT | DEBIT | PREPAID | STORE | UNKNOWN)& any,
>       brand?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>       billing_address?: {
>         address_line_1?: string,
>         address_line_2?: string,
>         address_line_3?: string,
>         admin_area_4?: string,
>         admin_area_3?: string,
>         admin_area_2?: string,
>         admin_area_1?: string,
>         postal_code?: string,
>         country_code: string,
>         address_details?: {
>           street_number?: string,
>           street_name?: string,
>           street_type?: string,
>           delivery_service?: string,
>           building_name?: string,
>           sub_building?: string
>         }
>       }& any
>     }& any,
>     decrypted_token?: {
>       message_id?: string,
>       message_expiration?: string,
>       payment_method: CARD,
>       card: {
>         name?: string,
>         number?: string,
>         expiry?: string & any,
>         type?: (CREDIT | DEBIT | PREPAID | STORE | UNKNOWN)& any,
>         brand?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>         billing_address?: {
>           address_line_1?: string,
>           address_line_2?: string,
>           address_line_3?: string,
>           admin_area_4?: string,
>           admin_area_3?: string,
>           admin_area_2?: string,
>           admin_area_1?: string,
>           postal_code?: string,
>           country_code: string,
>           address_details?: {
>             street_number?: string,
>             street_name?: string,
>             street_type?: string,
>             delivery_service?: string,
>             building_name?: string,
>             sub_building?: string
>           }
>         }& any
>       }& any,
>       authentication_method: PAN_ONLY | CRYPTOGRAM_3DS,
>       cryptogram?: string,
>       eci_indicator?: string
>     }& any,
>     assurance_details?: {
>       account_verified?: boolean,
>       card_holder_authenticated?: boolean
>     }& any,
>     experience_context?: {
>       return_url: string & any,
>       cancel_url: string & any
>     }
>   }& any,
>   venmo?: {
>     vault_id?: string & any,
>     email_address?: string & any,
>     experience_context?: {
>       brand_name?: string,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       order_update_callback_config?: {
>         callback_events: (SHIPPING_ADDRESS | SHIPPING_OPTIONS)[],
>         callback_url: string
>       }& any,
>       user_action?: CONTINUE | PAY_NOW
>     },
>     attributes?: {
>       customer?: {
>         id?: string,
>         email_address?: string & any,
>         phone?: {
>           phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>           phone_number: {
>             national_number: string
>           }& any
>         }& any,
>         name?: {
>           prefix?: string,
>           given_name?: string,
>           surname?: string,
>           middle_name?: string,
>           suffix?: string,
>           full_name?: string
>         }& any
>       },
>       vault?: {
>         store_in_vault: ON_SUCCESS,
>         description?: string,
>         usage_pattern?: IMMEDIATE | DEFERRED | RECURRING_PREPAID | RECURRING_POSTPAID | THRESHOLD_PREPAID | THRESHOLD_POSTPAID,
>         usage_type?: MERCHANT | PLATFORM,
>         customer_type?: CONSUMER | BUSINESS,
>         permit_multiple_payment_tokens?: boolean
>       }& any
>     }& any
>   }& any,
>   crypto?: {
>     country_code: string & any,
>     name: {
>       prefix?: string,
>       given_name: string,
>       surname: string,
>       middle_name?: string
>     }& any,
>     experience_context: {
>       locale?: string & any,
>       return_url: string & any,
>       cancel_url: string & any
>     }& any
>   }& any
> }& any
> ```

**Output:** `object`

> [accordion] Output full type
>
> ```ts theme={null}
> (
>   {
>     create_time?: string & any | null,
>     update_time?: string & any | null
>   }& any
> )& {
>   id?: string | null,
>   payment_source?: {
>     card?: {
>       name?: string | null,
>       last_digits?: string | null,
>       brand?: string & any | null,
>       available_networks?: (string & any)[] | null,
>       type?: string & any | null,
>       authentication_result?: {
>         liability_shift?: string | null,
>         three_d_secure?: {
>           authentication_status?: string & any | null,
>           enrollment_status?: string & any | null
>         } | null
>       } | null,
>       attributes?: {
>         vault?: (
>           {
>             id?: string | null,
>             status?: string | null,
>             customer?: {
>               id?: string | null,
>               email_address?: string & any | null,
>               phone?: {
>                 phone_type?: string | null,
>                 phone_number?: {
>                   national_number?: string | null
>                 }& any | null
>               }& any | null,
>               name?: {
>                 prefix?: string | null,
>                 given_name?: string | null,
>                 surname?: string | null,
>                 middle_name?: string | null,
>                 suffix?: string | null,
>                 full_name?: string | null
>               }& any | null
>             }& any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null
>           }& any
>         )& {
>           customer?: {
>             id?: string | null,
>             email_address?: string & any | null,
>             phone?: {
>               phone_type?: string | null,
>               phone_number?: {
>                 national_number?: string | null
>               }& any | null
>             }& any | null,
>             name?: {
>               prefix?: string | null,
>               given_name?: string | null,
>               surname?: string | null,
>               middle_name?: string | null,
>               suffix?: string | null,
>               full_name?: string | null
>             }& any | null,
>             merchant_customer_id?: string | null
>           } | null
>         } | null
>       } | null,
>       from_request?: {
>         expiry?: string & any | null,
>         last_digits?: string | null
>       } | null,
>       expiry?: string & any | null,
>       bin_details?: {
>         bin?: string | null,
>         issuing_bank?: string | null,
>         bin_country_code?: string & any | null,
>         products?: string[] | null
>       }& any | null,
>       stored_credential?: {
>         payment_initiator?: string | null,
>         payment_type?: string | null,
>         usage?: string | null,
>         previous_network_transaction_reference?: {
>           id?: string | null,
>           date?: string | null,
>           network?: string & any | null,
>           acquirer_reference_number?: string | null
>         } | null
>       } | null
>     } | null,
>     paypal?: {
>       email_address?: string & any | null,
>       account_id?: string & any | null,
>       account_status?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         full_name?: string | null
>       }& any | null,
>       phone_type?: string | null,
>       phone_number?: {
>         national_number?: string | null
>       }& any | null,
>       birth_date?: string & any | null,
>       business_name?: string | null,
>       tax_info?: {
>         tax_id?: string | null,
>         tax_id_type?: string | null
>       }& any | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       }& any | null,
>       attributes?: {
>         vault?: (
>           {
>             id?: string | null,
>             status?: string | null,
>             customer?: {
>               id?: string | null,
>               email_address?: string & any | null,
>               phone?: {
>                 phone_type?: string | null,
>                 phone_number?: {
>                   national_number?: string | null
>                 }& any | null
>               }& any | null,
>               name?: {
>                 prefix?: string | null,
>                 given_name?: string | null,
>                 surname?: string | null,
>                 middle_name?: string | null,
>                 suffix?: string | null,
>                 full_name?: string | null
>               }& any | null
>             }& any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null
>           }& any
>         )& {
>           customer?: {
>             id?: string | null,
>             email_address?: string & any | null,
>             phone?: {
>               phone_type?: string | null,
>               phone_number?: {
>                 national_number?: string | null
>               }& any | null
>             }& any | null,
>             name?: {
>               prefix?: string | null,
>               given_name?: string | null,
>               surname?: string | null,
>               middle_name?: string | null,
>               suffix?: string | null,
>               full_name?: string | null
>             }& any | null,
>             merchant_customer_id?: string | null
>           } | null
>         } | null,
>         cobranded_cards?: (
>           {
>             labels?: string[] | null,
>             payee?: {
>               email_address?: string & any | null,
>               merchant_id?: string & any | null
>             }& any | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null
>           }& any
>         )[] | null
>       } | null,
>       stored_credential?: {
>         payment_initiator?: string | null,
>         charge_pattern?: string & any | null,
>         usage_pattern?: string | null,
>         usage?: string | null
>       } | null,
>       experience_status?: string | null
>     } | null,
>     bancontact?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null,
>       card_last_digits?: string | null
>     } | null,
>     blik?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       email?: string & any | null,
>       one_click?: {
>         consumer_reference?: string | null
>       }& any | null
>     } | null,
>     eps?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null
>     } | null,
>     giropay?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null
>     } | null,
>     ideal?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null
>     } | null,
>     mybank?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null
>     } | null,
>     p24?: {
>       name?: string & any | null,
>       email?: string & any | null,
>       country_code?: string & any | null,
>       payment_descriptor?: string | null,
>       method_id?: string | null,
>       method_description?: string | null
>     } | null,
>     sofort?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null
>     } | null,
>     trustly?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       email?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null
>     } | null,
>     apple_pay?: {
>       id?: string | null,
>       token?: string | null,
>       name?: string & any | null,
>       email_address?: string & any | null,
>       phone_number?: {
>         country_code?: string | null,
>         national_number?: string | null,
>         extension_number?: string | null
>       }& any | null,
>       card?: ((
>         {
>           name?: string | null,
>           last_digits?: string | null,
>           brand?: string & any | null,
>           available_networks?: (string & any)[] | null,
>           type?: string & any | null,
>           authentication_result?: {
>             liability_shift?: string | null,
>             three_d_secure?: {
>               authentication_status?: string & any | null,
>               enrollment_status?: string & any | null
>             } | null
>           } | null,
>           attributes?: {
>             vault?: (
>               {
>                 id?: string | null,
>                 status?: string | null,
>                 customer?: {
>                   id?: string | null,
>                   email_address?: string & any | null,
>                   phone?: {
>                     phone_type?: string | null,
>                     phone_number?: {
>                       national_number?: string | null
>                     }& any | null
>                   }& any | null,
>                   name?: {
>                     prefix?: string | null,
>                     given_name?: string | null,
>                     surname?: string | null,
>                     middle_name?: string | null,
>                     suffix?: string | null,
>                     full_name?: string | null
>                   }& any | null
>                 }& any | null,
>                 links?: (
>                   {
>                     href?: string | null,
>                     rel?: string | null,
>                     method?: string | null,
>                     title?: string | null,
>                     mediaType?: string | null,
>                     encType?: string | null,
>                     schema?: {
>                       additionalItems?: {
>                       } | null,
>                       dependencies?: {
>                       } | null,
>                       items?: {
>                       } | null,
>                       definitions?: {
>                       } | null,
>                       patternProperties?: {
>                       } | null,
>                       properties?: {
>                       } | null,
>                       allOf?: {
>                       }[] | null,
>                       anyOf?: {
>                       }[] | null,
>                       oneOf?: {
>                       }[] | null,
>                       not?: {
>                       } | null,
>                       links?: {
>                       }[] | null,
>                       fragmentResolution?: string | null,
>                       media?: {
>                         type?: string | null,
>                         binaryEncoding?: string | null
>                       } | null,
>                       pathStart?: string | null
>                     }& any | null,
>                     targetSchema?: {
>                       additionalItems?: {
>                       } | null,
>                       dependencies?: {
>                       } | null,
>                       items?: {
>                       } | null,
>                       definitions?: {
>                       } | null,
>                       patternProperties?: {
>                       } | null,
>                       properties?: {
>                       } | null,
>                       allOf?: {
>                       }[] | null,
>                       anyOf?: {
>                       }[] | null,
>                       oneOf?: {
>                       }[] | null,
>                       not?: {
>                       } | null,
>                       links?: {
>                       }[] | null,
>                       fragmentResolution?: string | null,
>                       media?: {
>                         type?: string | null,
>                         binaryEncoding?: string | null
>                       } | null,
>                       pathStart?: string | null
>                     }& any | null
>                   }& any
>                 )[] | null
>               }& any
>             )& {
>               customer?: {
>                 id?: string | null,
>                 email_address?: string & any | null,
>                 phone?: {
>                   phone_type?: string | null,
>                   phone_number?: {
>                     national_number?: string | null
>                   }& any | null
>                 }& any | null,
>                 name?: {
>                   prefix?: string | null,
>                   given_name?: string | null,
>                   surname?: string | null,
>                   middle_name?: string | null,
>                   suffix?: string | null,
>                   full_name?: string | null
>                 }& any | null,
>                 merchant_customer_id?: string | null
>               } | null
>             } | null
>           } | null,
>           from_request?: {
>             expiry?: string & any | null,
>             last_digits?: string | null
>           } | null,
>           expiry?: string & any | null,
>           bin_details?: {
>             bin?: string | null,
>             issuing_bank?: string | null,
>             bin_country_code?: string & any | null,
>             products?: string[] | null
>           }& any | null,
>           stored_credential?: {
>             payment_initiator?: string | null,
>             payment_type?: string | null,
>             usage?: string | null,
>             previous_network_transaction_reference?: {
>               id?: string | null,
>               date?: string | null,
>               network?: string & any | null,
>               acquirer_reference_number?: string | null
>             } | null
>           } | null
>         }& any
>       )& {
>         name?: string | null,
>         billing_address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           address_line_3?: string | null,
>           admin_area_4?: string | null,
>           admin_area_3?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null,
>           address_details?: {
>             street_number?: string | null,
>             street_name?: string | null,
>             street_type?: string | null,
>             delivery_service?: string | null,
>             building_name?: string | null,
>             sub_building?: string | null
>           } | null
>         }& any | null,
>         country_code?: string & any | null
>       })& any | null,
>       attributes?: {
>         vault?: {
>           id?: string | null,
>           status?: string | null,
>           customer?: {
>             id?: string | null,
>             email_address?: string & any | null,
>             phone?: {
>               phone_type?: string | null,
>               phone_number?: {
>                 national_number?: string | null
>               }& any | null
>             }& any | null,
>             name?: {
>               prefix?: string | null,
>               given_name?: string | null,
>               surname?: string | null,
>               middle_name?: string | null,
>               suffix?: string | null,
>               full_name?: string | null
>             }& any | null
>           }& any | null,
>           links?: (
>             {
>               href?: string | null,
>               rel?: string | null,
>               method?: string | null,
>               title?: string | null,
>               mediaType?: string | null,
>               encType?: string | null,
>               schema?: {
>                 additionalItems?: {
>                 } | null,
>                 dependencies?: {
>                 } | null,
>                 items?: {
>                 } | null,
>                 definitions?: {
>                 } | null,
>                 patternProperties?: {
>                 } | null,
>                 properties?: {
>                 } | null,
>                 allOf?: {
>                 }[] | null,
>                 anyOf?: {
>                 }[] | null,
>                 oneOf?: {
>                 }[] | null,
>                 not?: {
>                 } | null,
>                 links?: {
>                 }[] | null,
>                 fragmentResolution?: string | null,
>                 media?: {
>                   type?: string | null,
>                   binaryEncoding?: string | null
>                 } | null,
>                 pathStart?: string | null
>               }& any | null,
>               targetSchema?: {
>                 additionalItems?: {
>                 } | null,
>                 dependencies?: {
>                 } | null,
>                 items?: {
>                 } | null,
>                 definitions?: {
>                 } | null,
>                 patternProperties?: {
>                 } | null,
>                 properties?: {
>                 } | null,
>                 allOf?: {
>                 }[] | null,
>                 anyOf?: {
>                 }[] | null,
>                 oneOf?: {
>                 }[] | null,
>                 not?: {
>                 } | null,
>                 links?: {
>                 }[] | null,
>                 fragmentResolution?: string | null,
>                 media?: {
>                   type?: string | null,
>                   binaryEncoding?: string | null
>                 } | null,
>                 pathStart?: string | null
>               }& any | null
>             }& any
>           )[] | null
>         } | null
>       }& any | null,
>       stored_credential?: {
>         payment_initiator?: string | null,
>         payment_type?: string | null,
>         usage?: string | null,
>         previous_network_transaction_reference?: {
>           id?: string | null,
>           date?: string | null,
>           network?: string & any | null,
>           acquirer_reference_number?: string | null
>         } | null
>       } | null
>     } | null,
>     google_pay?: {
>       name?: string & any | null,
>       email_address?: string & any | null,
>       phone_number?: {
>         country_code?: string | null,
>         national_number?: string | null
>       }& any | null,
>       card?: {
>         name?: string | null,
>         last_digits?: string | null,
>         type?: string & any | null,
>         brand?: string & any | null,
>         billing_address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           address_line_3?: string | null,
>           admin_area_4?: string | null,
>           admin_area_3?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null,
>           address_details?: {
>             street_number?: string | null,
>             street_name?: string | null,
>             street_type?: string | null,
>             delivery_service?: string | null,
>             building_name?: string | null,
>             sub_building?: string | null
>           } | null
>         }& any | null,
>         authentication_result?: {
>           liability_shift?: string | null,
>           three_d_secure?: {
>             authentication_status?: string & any | null,
>             enrollment_status?: string & any | null
>           } | null
>         } | null
>       }& any | null
>     } | null,
>     venmo?: {
>       email_address?: string & any | null,
>       account_id?: string & any | null,
>       user_name?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         full_name?: string | null
>       }& any | null,
>       phone_number?: {
>         national_number?: string | null
>       }& any | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       }& any | null,
>       return_flow?: string | null,
>       attributes?: {
>         vault?: (
>           {
>             id?: string | null,
>             status?: string | null,
>             customer?: {
>               id?: string | null,
>               email_address?: string & any | null,
>               phone?: {
>                 phone_type?: string | null,
>                 phone_number?: {
>                   national_number?: string | null
>                 }& any | null
>               }& any | null,
>               name?: {
>                 prefix?: string | null,
>                 given_name?: string | null,
>                 surname?: string | null,
>                 middle_name?: string | null,
>                 suffix?: string | null,
>                 full_name?: string | null
>               }& any | null
>             }& any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null
>           }& any
>         )& {
>           customer?: {
>             id?: string | null,
>             email_address?: string & any | null,
>             phone?: {
>               phone_type?: string | null,
>               phone_number?: {
>                 national_number?: string | null
>               }& any | null
>             }& any | null,
>             name?: {
>               prefix?: string | null,
>               given_name?: string | null,
>               surname?: string | null,
>               middle_name?: string | null,
>               suffix?: string | null,
>               full_name?: string | null
>             }& any | null
>           } | null
>         } | null
>       } | null
>     } | null,
>     crypto?: {
>       country_code?: string & any | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null
>       }& any | null,
>       experience_context?: {
>         brand_name?: string | null,
>         locale?: string & any | null,
>         shipping_preference?: string | null,
>         return_url?: string & any | null,
>         cancel_url?: string & any | null
>       }& any | null
>     } | null
>   }& any | null,
>   intent?: string | null,
>   payer?: {
>     email_address?: string & any | null,
>     payer_id?: string & any | null,
>     name?: {
>       prefix?: string | null,
>       given_name?: string | null,
>       surname?: string | null,
>       middle_name?: string | null,
>       suffix?: string | null,
>       full_name?: string | null
>     }& any | null,
>     phone?: {
>       phone_type?: string | null,
>       phone_number?: {
>         national_number?: string | null
>       }& any | null
>     }& any | null,
>     birth_date?: string & any | null,
>     tax_info?: {
>       tax_id?: string | null,
>       tax_id_type?: string | null
>     }& any | null,
>     address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       address_line_3?: string | null,
>       admin_area_4?: string | null,
>       admin_area_3?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null,
>       address_details?: {
>         street_number?: string | null,
>         street_name?: string | null,
>         street_type?: string | null,
>         delivery_service?: string | null,
>         building_name?: string | null,
>         sub_building?: string | null
>       } | null
>     }& any | null
>   } | null,
>   purchase_units?: (
>     {
>       reference_id?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null,
>         breakdown?: {
>           item_total?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           shipping?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           handling?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           tax_total?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           insurance?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           shipping_discount?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           discount?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null
>         } | null
>       } | null,
>       payee?: {
>         email_address?: string & any | null,
>         merchant_id?: string & any | null
>       }& any | null,
>       payment_instruction?: {
>         platform_fees?: (
>           {
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             payee?: {
>               email_address?: string & any | null,
>               merchant_id?: string & any | null
>             }& any | null
>           }& any
>         )[] | null,
>         disbursement_mode?: string & any | null,
>         payee_pricing_tier_id?: string | null,
>         payee_receivable_fx_rate_id?: string | null
>       } | null,
>       description?: string | null,
>       custom_id?: string | null,
>       invoice_id?: string | null,
>       id?: string | null,
>       soft_descriptor?: string | null,
>       items?: (
>         {
>           name?: string | null,
>           unit_amount?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           tax?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           quantity?: string | null,
>           description?: string | null,
>           sku?: string | null,
>           url?: string | null,
>           category?: string | null,
>           image_url?: string | null,
>           upc?: {
>             type?: string | null,
>             code?: string | null
>           }& any | null,
>           billing_plan?: {
>             billing_cycles?: {
>               tenure_type?: string | null,
>               pricing_scheme?: {
>                 price?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 pricing_model?: string | null,
>                 reload_threshold_amount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null
>               }& any | null,
>               total_cycles?: number | null,
>               sequence?: number | null,
>               start_date?: string & any | null
>             }[] | null,
>             setup_fee?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             name?: string | null
>           } | null
>         }& any
>       )[] | null,
>       shipping?: {
>         name?: {
>           prefix?: string | null,
>           given_name?: string | null,
>           surname?: string | null,
>           middle_name?: string | null,
>           suffix?: string | null,
>           full_name?: string | null
>         }& any | null,
>         email_address?: string & any | null,
>         phone_number?: (
>           {
>             country_code?: string | null,
>             national_number?: string | null,
>             extension_number?: string | null
>           }& any
>         )& (
>           {
>             country_code?: string | null,
>             national_number?: string | null
>           }& any
>         ) | null,
>         type?: string | null,
>         options?: (
>           {
>             id?: string | null,
>             label?: string | null,
>             type?: string & any | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             selected?: boolean | null
>           }& any
>         )[] | null,
>         address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           address_line_3?: string | null,
>           admin_area_4?: string | null,
>           admin_area_3?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null,
>           address_details?: {
>             street_number?: string | null,
>             street_name?: string | null,
>             street_type?: string | null,
>             delivery_service?: string | null,
>             building_name?: string | null,
>             sub_building?: string | null
>           } | null
>         }& any | null,
>         trackers?: {
>           id?: string | null,
>           status?: string | null,
>           items?: (
>             {
>               name?: string | null,
>               quantity?: string | null,
>               sku?: string | null,
>               url?: string | null,
>               image_url?: string | null,
>               upc?: {
>                 type?: string | null,
>                 code?: string | null
>               }& any | null
>             }& any
>           )[] | null,
>           links?: (
>             {
>               href?: string | null,
>               rel?: string | null,
>               method?: string | null,
>               title?: string | null,
>               mediaType?: string | null,
>               encType?: string | null,
>               schema?: {
>                 additionalItems?: {
>                 } | null,
>                 dependencies?: {
>                 } | null,
>                 items?: {
>                 } | null,
>                 definitions?: {
>                 } | null,
>                 patternProperties?: {
>                 } | null,
>                 properties?: {
>                 } | null,
>                 allOf?: {
>                 }[] | null,
>                 anyOf?: {
>                 }[] | null,
>                 oneOf?: {
>                 }[] | null,
>                 not?: {
>                 } | null,
>                 links?: {
>                 }[] | null,
>                 fragmentResolution?: string | null,
>                 media?: {
>                   type?: string | null,
>                   binaryEncoding?: string | null
>                 } | null,
>                 pathStart?: string | null
>               }& any | null,
>               targetSchema?: {
>                 additionalItems?: {
>                 } | null,
>                 dependencies?: {
>                 } | null,
>                 items?: {
>                 } | null,
>                 definitions?: {
>                 } | null,
>                 patternProperties?: {
>                 } | null,
>                 properties?: {
>                 } | null,
>                 allOf?: {
>                 }[] | null,
>                 anyOf?: {
>                 }[] | null,
>                 oneOf?: {
>                 }[] | null,
>                 not?: {
>                 } | null,
>                 links?: {
>                 }[] | null,
>                 fragmentResolution?: string | null,
>                 media?: {
>                   type?: string | null,
>                   binaryEncoding?: string | null
>                 } | null,
>                 pathStart?: string | null
>               }& any | null
>             }& any
>           )[] | null,
>           create_time?: string & any | null,
>           update_time?: string & any | null
>         }[] | null
>       }& any | null,
>       supplementary_data?: {
>         card?: {
>           level_2?: {
>             invoice_id?: string | null,
>             tax_total?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null
>           } | null,
>           level_3?: {
>             shipping_amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             duty_amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             discount_amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             shipping_address?: {
>               address_line_1?: string | null,
>               address_line_2?: string | null,
>               address_line_3?: string | null,
>               admin_area_4?: string | null,
>               admin_area_3?: string | null,
>               admin_area_2?: string | null,
>               admin_area_1?: string | null,
>               postal_code?: string | null,
>               country_code?: string | null,
>               address_details?: {
>                 street_number?: string | null,
>                 street_name?: string | null,
>                 street_type?: string | null,
>                 delivery_service?: string | null,
>                 building_name?: string | null,
>                 sub_building?: string | null
>               } | null
>             }& any | null,
>             ships_from_postal_code?: string | null,
>             line_items?: (
>               {
>                 name?: string | null,
>                 quantity?: string | null,
>                 description?: string | null,
>                 sku?: string | null,
>                 url?: string | null,
>                 image_url?: string | null,
>                 upc?: {
>                   type?: string | null,
>                   code?: string | null
>                 }& any | null,
>                 billing_plan?: {
>                   billing_cycles?: {
>                     tenure_type?: string | null,
>                     pricing_scheme?: {
>                       price?: {
>                         currency_code?: string | null,
>                         value?: string | null
>                       }& any | null,
>                       pricing_model?: string | null,
>                       reload_threshold_amount?: {
>                         currency_code?: string | null,
>                         value?: string | null
>                       }& any | null
>                     }& any | null,
>                     total_cycles?: number | null,
>                     sequence?: number | null,
>                     start_date?: string & any | null
>                   }[] | null,
>                   setup_fee?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   name?: string | null
>                 } | null,
>                 unit_amount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 tax?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 commodity_code?: string | null,
>                 discount_amount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 total_amount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 unit_of_measure?: string | null
>               }& any
>             )[] | null
>           } | null
>         }& any | null,
>         risk?: {
>           customer?: {
>             ip_address?: string & any | null
>           } | null
>         }& any | null
>       }& any | null,
>       payments?: {
>         authorizations?: (
>           {
>             status?: string | null,
>             status_details?: {
>               reason?: string | null
>             }& any | null,
>             id?: string | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null,
>               breakdown?: {
>                 item_total?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 shipping?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 handling?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 tax_total?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 insurance?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 shipping_discount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 discount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null
>               } | null
>             }& any | null,
>             invoice_id?: string | null,
>             custom_id?: string | null,
>             network_transaction_reference?: {
>               id?: string | null,
>               date?: string | null,
>               network?: string & any | null,
>               acquirer_reference_number?: string | null
>             } | null,
>             seller_protection?: {
>               status?: string | null,
>               dispute_categories?: string[] | null
>             }& any | null,
>             expiration_time?: string & any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null,
>             create_time?: string & any | null,
>             update_time?: string & any | null,
>             processor_response?: {
>               avs_code?: string | null,
>               cvv_code?: string | null,
>               response_code?: string | null,
>               payment_advice_code?: string | null
>             }& any | null
>           }& any
>         )[] | null,
>         captures?: (
>           {
>             status?: string | null,
>             status_details?: {
>               reason?: string | null
>             }& any | null,
>             id?: string | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null,
>               breakdown?: {
>                 item_total?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 shipping?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 handling?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 tax_total?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 insurance?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 shipping_discount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 discount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null
>               } | null
>             }& any | null,
>             invoice_id?: string | null,
>             custom_id?: string | null,
>             network_transaction_reference?: {
>               id?: string | null,
>               date?: string | null,
>               network?: string & any | null,
>               acquirer_reference_number?: string | null
>             } | null,
>             seller_protection?: {
>               status?: string | null,
>               dispute_categories?: string[] | null
>             }& any | null,
>             final_capture?: boolean | null,
>             seller_receivable_breakdown?: {
>               gross_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               paypal_fee?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               paypal_fee_in_receivable_currency?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               net_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               receivable_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               exchange_rate?: {
>                 source_currency?: string & any | null,
>                 target_currency?: string & any | null,
>                 value?: string | null
>               }& any | null,
>               platform_fees?: (
>                 {
>                   amount?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   payee?: {
>                     email_address?: string & any | null,
>                     merchant_id?: string & any | null
>                   }& any | null
>                 }& any
>               )[] | null
>             }& any | null,
>             disbursement_mode?: string | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null,
>             processor_response?: {
>               avs_code?: string | null,
>               cvv_code?: string | null,
>               response_code?: string | null,
>               payment_advice_code?: string | null
>             }& any | null,
>             create_time?: string & any | null,
>             update_time?: string & any | null
>           }& any
>         )[] | null,
>         refunds?: (
>           {
>             status?: string | null,
>             status_details?: {
>               reason?: string | null
>             }& any | null,
>             id?: string | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             invoice_id?: string | null,
>             custom_id?: string | null,
>             acquirer_reference_number?: string | null,
>             note_to_payer?: string | null,
>             seller_payable_breakdown?: {
>               gross_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               paypal_fee?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               paypal_fee_in_receivable_currency?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               net_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               net_amount_in_receivable_currency?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               platform_fees?: (
>                 {
>                   amount?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   payee?: {
>                     email_address?: string & any | null,
>                     merchant_id?: string & any | null
>                   }& any | null
>                 }& any
>               )[] | null,
>               net_amount_breakdown?: (
>                 {
>                   payable_amount?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   converted_amount?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   exchange_rate?: {
>                     source_currency?: string & any | null,
>                     target_currency?: string & any | null,
>                     value?: string | null
>                   }& any | null
>                 }& any
>               )[] | null,
>               total_refunded_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null
>             } | null,
>             payer?: {
>               email_address?: string & any | null,
>               merchant_id?: string & any | null
>             }& any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null,
>             create_time?: string & any | null,
>             update_time?: string & any | null
>           }& any
>         )[] | null
>       }& any | null
>     }& any
>   )[] | null,
>   status?: string & any | null,
>   links?: (
>     {
>       href?: string | null,
>       rel?: string | null,
>       method?: string | null,
>       title?: string | null,
>       mediaType?: string | null,
>       encType?: string | null,
>       schema?: {
>         additionalItems?: {
>         } | null,
>         dependencies?: {
>         } | null,
>         items?: {
>         } | null,
>         definitions?: {
>         } | null,
>         patternProperties?: {
>         } | null,
>         properties?: {
>         } | null,
>         allOf?: {
>         }[] | null,
>         anyOf?: {
>         }[] | null,
>         oneOf?: {
>         }[] | null,
>         not?: {
>         } | null,
>         links?: {
>         }[] | null,
>         fragmentResolution?: string | null,
>         media?: {
>           type?: string | null,
>           binaryEncoding?: string | null
>         } | null,
>         pathStart?: string | null
>       }& any | null,
>       targetSchema?: {
>         additionalItems?: {
>         } | null,
>         dependencies?: {
>         } | null,
>         items?: {
>         } | null,
>         definitions?: {
>         } | null,
>         patternProperties?: {
>         } | null,
>         properties?: {
>         } | null,
>         allOf?: {
>         }[] | null,
>         anyOf?: {
>         }[] | null,
>         oneOf?: {
>         }[] | null,
>         not?: {
>         } | null,
>         links?: {
>         }[] | null,
>         fragmentResolution?: string | null,
>         media?: {
>           type?: string | null,
>           binaryEncoding?: string | null
>         } | null,
>         pathStart?: string | null
>       }& any | null
>     }& any
>   )[] | null
> }
> ```

***

### capture

`orders.capture`

Capture the payment of an approved order: money moves from the buyer to you

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.orders.capture({ id: '5O190127TN364715T' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `paypal_request_id` | `string` | No | The server stores keys for 6 hours. The API callers can request the times to up to 72 hours by speaking to their Account Manager. It is mandatory for all single-step create order calls (E.g. Create Order Request with payment source information like Card, PayPal.vault\_id, PayPal.billing\_agreement\_id, etc). |
| `prefer` | `string` | No | The preferred server response upon successful completion of the request. Value is:return=minimal. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the id, status and HATEOAS links.return=representation. The server returns a complete resource representation, including the current state of the resource. |
| `paypal_client_metadata_id` | `string` | No | A Globally Unique Identifier (GUID) value. |
| `id` | `string` | Yes | The ID of the order for which to capture a payment. |
| `paypal_auth_assertion` | `string` | No | Header for an API client-provided JWT assertion that identifies the merchant. Establishing the consent to act-on-behalf of a merchant is a prerequisite for using this header. |
| `payment_source` | `object` | No | — |

> [accordion] payment\_source full type
>
> ```ts theme={null}
> {
>   card?: (
>     {
>       id?: string & any,
>       name?: string,
>       number?: string,
>       expiry?: string & any,
>       security_code?: string,
>       card_type?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>       type?: (CREDIT | DEBIT | PREPAID | STORE | UNKNOWN)& any,
>       brand?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>       billing_address?: {
>         address_line_1?: string,
>         address_line_2?: string,
>         address_line_3?: string,
>         admin_area_4?: string,
>         admin_area_3?: string,
>         admin_area_2?: string,
>         admin_area_1?: string,
>         postal_code?: string,
>         country_code: string,
>         address_details?: {
>           street_number?: string,
>           street_name?: string,
>           street_type?: string,
>           delivery_service?: string,
>           building_name?: string,
>           sub_building?: string
>         }
>       }& any,
>       attributes?: {
>         customer?: {
>           id?: string,
>           email_address?: string & any,
>           phone?: {
>             phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>             phone_number: {
>               national_number: string
>             }& any
>           }& any,
>           name?: {
>             prefix?: string,
>             given_name?: string,
>             surname?: string,
>             middle_name?: string,
>             suffix?: string,
>             full_name?: string
>           }& any,
>           merchant_customer_id?: string
>         },
>         vault?: {
>           store_in_vault?: ON_SUCCESS
>         }& any,
>         verification?: {
>           method?: SCA_ALWAYS | SCA_WHEN_REQUIRED | 3D_SECURE | AVS_CVV
>         }& any
>       }& any
>     }& any
>   )& {
>     vault_id?: string & any,
>     single_use_token?: string & any,
>     stored_credential?: {
>       payment_initiator: CUSTOMER | MERCHANT,
>       payment_type: ONE_TIME | RECURRING | UNSCHEDULED,
>       usage?: FIRST | SUBSEQUENT | DERIVED,
>       previous_network_transaction_reference?: {
>         id?: string,
>         date?: string,
>         network?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>         acquirer_reference_number?: string
>       }
>     },
>     network_token?: {
>       number: string,
>       expiry: string & any,
>       cryptogram?: string,
>       eci_flag?: MASTERCARD_NON_3D_SECURE_TRANSACTION | MASTERCARD_ATTEMPTED_AUTHENTICATION_TRANSACTION | MASTERCARD_FULLY_AUTHENTICATED_TRANSACTION | FULLY_AUTHENTICATED_TRANSACTION | ATTEMPTED_AUTHENTICATION_TRANSACTION | NON_3D_SECURE_TRANSACTION,
>       token_requestor_id?: string
>     }& any,
>     experience_context?: {
>       return_url?: string & string,
>       cancel_url?: string & string
>     }& any
>   },
>   token?: {
>     id: string,
>     type: BILLING_AGREEMENT
>   },
>   paypal?: {
>     vault_id?: string & any,
>     email_address?: string & any,
>     name?: {
>       prefix?: string,
>       given_name?: string,
>       surname?: string,
>       middle_name?: string,
>       suffix?: string,
>       full_name?: string
>     }& any,
>     phone?: {
>       phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>       phone_number: {
>         national_number: string
>       }& any
>     }& any,
>     birth_date?: string & any,
>     tax_info?: {
>       tax_id: string,
>       tax_id_type: BR_CPF | BR_CNPJ
>     }& any,
>     address?: {
>       address_line_1?: string,
>       address_line_2?: string,
>       address_line_3?: string,
>       admin_area_4?: string,
>       admin_area_3?: string,
>       admin_area_2?: string,
>       admin_area_1?: string,
>       postal_code?: string,
>       country_code: string,
>       address_details?: {
>         street_number?: string,
>         street_name?: string,
>         street_type?: string,
>         delivery_service?: string,
>         building_name?: string,
>         sub_building?: string
>       }
>     }& any,
>     attributes?: {
>       customer?: {
>         id?: string,
>         email_address?: string & any,
>         phone?: {
>           phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>           phone_number: {
>             national_number: string
>           }& any
>         }& any,
>         name?: {
>           prefix?: string,
>           given_name?: string,
>           surname?: string,
>           middle_name?: string,
>           suffix?: string,
>           full_name?: string
>         }& any,
>         merchant_customer_id?: string
>       },
>       vault?: {
>         store_in_vault?: ON_SUCCESS,
>         description?: string,
>         usage_pattern?: IMMEDIATE | DEFERRED | RECURRING_PREPAID | RECURRING_POSTPAID | THRESHOLD_PREPAID | THRESHOLD_POSTPAID | SUBSCRIPTION_PREPAID | SUBSCRIPTION_POSTPAID | UNSCHEDULED_PREPAID | UNSCHEDULED_POSTPAID | INSTALLMENT_PREPAID | INSTALLMENT_POSTPAID,
>         shipping?: {
>           name?: {
>             prefix?: string,
>             given_name?: string,
>             surname?: string,
>             middle_name?: string,
>             suffix?: string,
>             full_name?: string
>           }& any,
>           email_address?: string & any,
>           phone_number?: {
>             country_code: string,
>             national_number: string,
>             extension_number?: string
>           }& any,
>           type?: SHIPPING | PICKUP_IN_PERSON | PICKUP_IN_STORE | PICKUP_FROM_PERSON,
>           options?: (
>             {
>               id: string,
>               label: string,
>               type?: (SHIPPING | PICKUP | PICKUP_IN_STORE | PICKUP_FROM_PERSON)& any,
>               amount?: {
>                 currency_code: string,
>                 value: string
>               }& any,
>               selected: boolean
>             }& any
>           )[],
>           address?: {
>             address_line_1?: string,
>             address_line_2?: string,
>             address_line_3?: string,
>             admin_area_4?: string,
>             admin_area_3?: string,
>             admin_area_2?: string,
>             admin_area_1?: string,
>             postal_code?: string,
>             country_code: string,
>             address_details?: {
>               street_number?: string,
>               street_name?: string,
>               street_type?: string,
>               delivery_service?: string,
>               building_name?: string,
>               sub_building?: string
>             }
>           }& any
>         }& any,
>         usage_type?: MERCHANT | PLATFORM,
>         customer_type?: CONSUMER | BUSINESS,
>         permit_multiple_payment_tokens?: boolean
>       }& any
>     }& any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       contact_preference?: NO_CONTACT_INFO | UPDATE_CONTACT_INFO | RETAIN_CONTACT_INFO,
>       return_url?: string & any,
>       cancel_url?: string & any,
>       app_switch_context?: {
>         native_app?: {
>         },
>         mobile_web?: {
>           buyer_user_agent?: string
>         }
>       }& any,
>       landing_page?: LOGIN | GUEST_CHECKOUT | NO_PREFERENCE | BILLING,
>       user_action?: CONTINUE | PAY_NOW,
>       payment_method_preference?: UNRESTRICTED | IMMEDIATE_PAYMENT_REQUIRED,
>       order_update_callback_config?: {
>         callback_events: (SHIPPING_ADDRESS | SHIPPING_OPTIONS)[],
>         callback_url: string
>       }& any
>     },
>     billing_agreement_id?: string,
>     stored_credential?: {
>       payment_initiator: CUSTOMER | MERCHANT,
>       charge_pattern?: (IMMEDIATE | DEFERRED | RECURRING_PREPAID | RECURRING_POSTPAID | THRESHOLD_PREPAID | THRESHOLD_POSTPAID | SUBSCRIPTION_PREPAID | SUBSCRIPTION_POSTPAID | UNSCHEDULED_PREPAID | UNSCHEDULED_POSTPAID | INSTALLMENT_PREPAID | INSTALLMENT_POSTPAID)& any,
>       usage_pattern?: IMMEDIATE | DEFERRED | RECURRING_PREPAID | RECURRING_POSTPAID | THRESHOLD_PREPAID | THRESHOLD_POSTPAID | SUBSCRIPTION_PREPAID | SUBSCRIPTION_POSTPAID | UNSCHEDULED_PREPAID | UNSCHEDULED_POSTPAID | INSTALLMENT_PREPAID | INSTALLMENT_POSTPAID,
>       usage?: FIRST | SUBSEQUENT | DERIVED
>     }
>   }& any,
>   bancontact?: {
>     name: string & any,
>     country_code: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   blik?: {
>     name: string & any,
>     country_code: string & any,
>     email?: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any,
>       consumer_ip?: string & any,
>       consumer_user_agent?: string
>     }& any,
>     level_0?: {
>       auth_code: string
>     }& any,
>     one_click?: {
>       auth_code?: string,
>       consumer_reference: string,
>       alias_label?: string,
>       alias_key?: string
>     }& any
>   }& any,
>   eps?: {
>     name: string & any,
>     country_code: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   giropay?: {
>     name: string & any,
>     country_code: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   ideal?: {
>     name: string & any,
>     country_code: string & any,
>     bic?: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   mybank?: {
>     name: string & any,
>     country_code: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   p24?: {
>     name: string & any,
>     email: string & any,
>     country_code: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   sofort?: {
>     name: string & any,
>     country_code: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   trustly?: {
>     name: string & any,
>     country_code: string & any,
>     email: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   apple_pay?: {
>     id?: string,
>     name?: string & any,
>     email_address?: string & any,
>     phone_number?: {
>       national_number: string
>     }& any,
>     decrypted_token?: {
>       transaction_amount?: {
>         currency_code: string,
>         value: string
>       }& any,
>       tokenized_card: {
>         id?: string & any,
>         name?: string,
>         number?: string,
>         expiry?: string & any,
>         security_code?: string,
>         card_type?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>         type?: (CREDIT | DEBIT | PREPAID | STORE | UNKNOWN)& any,
>         brand?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>         billing_address?: {
>           address_line_1?: string,
>           address_line_2?: string,
>           address_line_3?: string,
>           admin_area_4?: string,
>           admin_area_3?: string,
>           admin_area_2?: string,
>           admin_area_1?: string,
>           postal_code?: string,
>           country_code: string,
>           address_details?: {
>             street_number?: string,
>             street_name?: string,
>             street_type?: string,
>             delivery_service?: string,
>             building_name?: string,
>             sub_building?: string
>           }
>         }& any,
>         attributes?: {
>           customer?: {
>             id?: string,
>             email_address?: string & any,
>             phone?: {
>               phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>               phone_number: {
>                 national_number: string
>               }& any
>             }& any,
>             name?: {
>               prefix?: string,
>               given_name?: string,
>               surname?: string,
>               middle_name?: string,
>               suffix?: string,
>               full_name?: string
>             }& any,
>             merchant_customer_id?: string
>           },
>           vault?: {
>             store_in_vault?: ON_SUCCESS
>           }& any,
>           verification?: {
>             method?: SCA_ALWAYS | SCA_WHEN_REQUIRED | 3D_SECURE | AVS_CVV
>           }& any
>         }& any
>       }& any,
>       device_manufacturer_id?: string,
>       payment_data_type?: 3DSECURE | EMV,
>       payment_data?: {
>         cryptogram?: string,
>         eci_indicator?: string,
>         emv_data?: string,
>         pin?: string
>       }& any
>     }& any,
>     stored_credential?: {
>       payment_initiator: CUSTOMER | MERCHANT,
>       payment_type: ONE_TIME | RECURRING | UNSCHEDULED,
>       usage?: FIRST | SUBSEQUENT | DERIVED,
>       previous_network_transaction_reference?: {
>         id?: string,
>         date?: string,
>         network?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>         acquirer_reference_number?: string
>       }
>     },
>     vault_id?: string & any,
>     attributes?: {
>       customer?: {
>         id?: string,
>         email_address?: string & any,
>         phone?: {
>           phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>           phone_number: {
>             national_number: string
>           }& any
>         }& any,
>         name?: {
>           prefix?: string,
>           given_name?: string,
>           surname?: string,
>           middle_name?: string,
>           suffix?: string,
>           full_name?: string
>         }& any
>       },
>       vault?: {
>         store_in_vault: ON_SUCCESS
>       }
>     },
>     experience_context?: {
>       return_url: string & any,
>       cancel_url: string & any
>     }
>   }& any,
>   google_pay?: {
>     name?: string & any,
>     email_address?: string & any,
>     phone_number?: {
>       country_code?: string,
>       national_number: string
>     }& any,
>     card?: {
>       name?: string,
>       number?: string,
>       expiry?: string & any,
>       type?: (CREDIT | DEBIT | PREPAID | STORE | UNKNOWN)& any,
>       brand?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>       billing_address?: {
>         address_line_1?: string,
>         address_line_2?: string,
>         address_line_3?: string,
>         admin_area_4?: string,
>         admin_area_3?: string,
>         admin_area_2?: string,
>         admin_area_1?: string,
>         postal_code?: string,
>         country_code: string,
>         address_details?: {
>           street_number?: string,
>           street_name?: string,
>           street_type?: string,
>           delivery_service?: string,
>           building_name?: string,
>           sub_building?: string
>         }
>       }& any
>     }& any,
>     decrypted_token?: {
>       message_id?: string,
>       message_expiration?: string,
>       payment_method: CARD,
>       card: {
>         name?: string,
>         number?: string,
>         expiry?: string & any,
>         type?: (CREDIT | DEBIT | PREPAID | STORE | UNKNOWN)& any,
>         brand?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>         billing_address?: {
>           address_line_1?: string,
>           address_line_2?: string,
>           address_line_3?: string,
>           admin_area_4?: string,
>           admin_area_3?: string,
>           admin_area_2?: string,
>           admin_area_1?: string,
>           postal_code?: string,
>           country_code: string,
>           address_details?: {
>             street_number?: string,
>             street_name?: string,
>             street_type?: string,
>             delivery_service?: string,
>             building_name?: string,
>             sub_building?: string
>           }
>         }& any
>       }& any,
>       authentication_method: PAN_ONLY | CRYPTOGRAM_3DS,
>       cryptogram?: string,
>       eci_indicator?: string
>     }& any,
>     assurance_details?: {
>       account_verified?: boolean,
>       card_holder_authenticated?: boolean
>     }& any,
>     experience_context?: {
>       return_url: string & any,
>       cancel_url: string & any
>     }
>   }& any,
>   venmo?: {
>     vault_id?: string & any,
>     email_address?: string & any,
>     experience_context?: {
>       brand_name?: string,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       order_update_callback_config?: {
>         callback_events: (SHIPPING_ADDRESS | SHIPPING_OPTIONS)[],
>         callback_url: string
>       }& any,
>       user_action?: CONTINUE | PAY_NOW
>     },
>     attributes?: {
>       customer?: {
>         id?: string,
>         email_address?: string & any,
>         phone?: {
>           phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>           phone_number: {
>             national_number: string
>           }& any
>         }& any,
>         name?: {
>           prefix?: string,
>           given_name?: string,
>           surname?: string,
>           middle_name?: string,
>           suffix?: string,
>           full_name?: string
>         }& any
>       },
>       vault?: {
>         store_in_vault: ON_SUCCESS,
>         description?: string,
>         usage_pattern?: IMMEDIATE | DEFERRED | RECURRING_PREPAID | RECURRING_POSTPAID | THRESHOLD_PREPAID | THRESHOLD_POSTPAID,
>         usage_type?: MERCHANT | PLATFORM,
>         customer_type?: CONSUMER | BUSINESS,
>         permit_multiple_payment_tokens?: boolean
>       }& any
>     }& any
>   }& any,
>   crypto?: {
>     country_code: string & any,
>     name: {
>       prefix?: string,
>       given_name: string,
>       surname: string,
>       middle_name?: string
>     }& any,
>     experience_context: {
>       locale?: string & any,
>       return_url: string & any,
>       cancel_url: string & any
>     }& any
>   }& any
> }& any
> ```

**Output:** `object`

> [accordion] Output full type
>
> ```ts theme={null}
> (
>   {
>     create_time?: string & any | null,
>     update_time?: string & any | null
>   }& any
> )& {
>   id?: string | null,
>   payment_source?: {
>     card?: {
>       name?: string | null,
>       last_digits?: string | null,
>       brand?: string & any | null,
>       available_networks?: (string & any)[] | null,
>       type?: string & any | null,
>       authentication_result?: {
>         liability_shift?: string | null,
>         three_d_secure?: {
>           authentication_status?: string & any | null,
>           enrollment_status?: string & any | null
>         } | null
>       } | null,
>       attributes?: {
>         vault?: (
>           {
>             id?: string | null,
>             status?: string | null,
>             customer?: {
>               id?: string | null,
>               email_address?: string & any | null,
>               phone?: {
>                 phone_type?: string | null,
>                 phone_number?: {
>                   national_number?: string | null
>                 }& any | null
>               }& any | null,
>               name?: {
>                 prefix?: string | null,
>                 given_name?: string | null,
>                 surname?: string | null,
>                 middle_name?: string | null,
>                 suffix?: string | null,
>                 full_name?: string | null
>               }& any | null
>             }& any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null
>           }& any
>         )& {
>           customer?: {
>             id?: string | null,
>             email_address?: string & any | null,
>             phone?: {
>               phone_type?: string | null,
>               phone_number?: {
>                 national_number?: string | null
>               }& any | null
>             }& any | null,
>             name?: {
>               prefix?: string | null,
>               given_name?: string | null,
>               surname?: string | null,
>               middle_name?: string | null,
>               suffix?: string | null,
>               full_name?: string | null
>             }& any | null,
>             merchant_customer_id?: string | null
>           } | null
>         } | null
>       } | null,
>       from_request?: {
>         expiry?: string & any | null,
>         last_digits?: string | null
>       } | null,
>       expiry?: string & any | null,
>       bin_details?: {
>         bin?: string | null,
>         issuing_bank?: string | null,
>         bin_country_code?: string & any | null,
>         products?: string[] | null
>       }& any | null,
>       stored_credential?: {
>         payment_initiator?: string | null,
>         payment_type?: string | null,
>         usage?: string | null,
>         previous_network_transaction_reference?: {
>           id?: string | null,
>           date?: string | null,
>           network?: string & any | null,
>           acquirer_reference_number?: string | null
>         } | null
>       } | null
>     } | null,
>     paypal?: {
>       email_address?: string & any | null,
>       account_id?: string & any | null,
>       account_status?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         full_name?: string | null
>       }& any | null,
>       phone_type?: string | null,
>       phone_number?: {
>         national_number?: string | null
>       }& any | null,
>       birth_date?: string & any | null,
>       business_name?: string | null,
>       tax_info?: {
>         tax_id?: string | null,
>         tax_id_type?: string | null
>       }& any | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       }& any | null,
>       attributes?: {
>         vault?: (
>           {
>             id?: string | null,
>             status?: string | null,
>             customer?: {
>               id?: string | null,
>               email_address?: string & any | null,
>               phone?: {
>                 phone_type?: string | null,
>                 phone_number?: {
>                   national_number?: string | null
>                 }& any | null
>               }& any | null,
>               name?: {
>                 prefix?: string | null,
>                 given_name?: string | null,
>                 surname?: string | null,
>                 middle_name?: string | null,
>                 suffix?: string | null,
>                 full_name?: string | null
>               }& any | null
>             }& any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null
>           }& any
>         )& {
>           customer?: {
>             id?: string | null,
>             email_address?: string & any | null,
>             phone?: {
>               phone_type?: string | null,
>               phone_number?: {
>                 national_number?: string | null
>               }& any | null
>             }& any | null,
>             name?: {
>               prefix?: string | null,
>               given_name?: string | null,
>               surname?: string | null,
>               middle_name?: string | null,
>               suffix?: string | null,
>               full_name?: string | null
>             }& any | null,
>             merchant_customer_id?: string | null
>           } | null
>         } | null,
>         cobranded_cards?: (
>           {
>             labels?: string[] | null,
>             payee?: {
>               email_address?: string & any | null,
>               merchant_id?: string & any | null
>             }& any | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null
>           }& any
>         )[] | null
>       } | null,
>       stored_credential?: {
>         payment_initiator?: string | null,
>         charge_pattern?: string & any | null,
>         usage_pattern?: string | null,
>         usage?: string | null
>       } | null,
>       experience_status?: string | null
>     } | null,
>     bancontact?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null,
>       card_last_digits?: string | null
>     } | null,
>     blik?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       email?: string & any | null,
>       one_click?: {
>         consumer_reference?: string | null
>       }& any | null
>     } | null,
>     eps?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null
>     } | null,
>     giropay?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null
>     } | null,
>     ideal?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null
>     } | null,
>     mybank?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null
>     } | null,
>     p24?: {
>       name?: string & any | null,
>       email?: string & any | null,
>       country_code?: string & any | null,
>       payment_descriptor?: string | null,
>       method_id?: string | null,
>       method_description?: string | null
>     } | null,
>     sofort?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null
>     } | null,
>     trustly?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       email?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null
>     } | null,
>     apple_pay?: {
>       id?: string | null,
>       token?: string | null,
>       name?: string & any | null,
>       email_address?: string & any | null,
>       phone_number?: {
>         country_code?: string | null,
>         national_number?: string | null,
>         extension_number?: string | null
>       }& any | null,
>       card?: ((
>         {
>           name?: string | null,
>           last_digits?: string | null,
>           brand?: string & any | null,
>           available_networks?: (string & any)[] | null,
>           type?: string & any | null,
>           authentication_result?: {
>             liability_shift?: string | null,
>             three_d_secure?: {
>               authentication_status?: string & any | null,
>               enrollment_status?: string & any | null
>             } | null
>           } | null,
>           attributes?: {
>             vault?: (
>               {
>                 id?: string | null,
>                 status?: string | null,
>                 customer?: {
>                   id?: string | null,
>                   email_address?: string & any | null,
>                   phone?: {
>                     phone_type?: string | null,
>                     phone_number?: {
>                       national_number?: string | null
>                     }& any | null
>                   }& any | null,
>                   name?: {
>                     prefix?: string | null,
>                     given_name?: string | null,
>                     surname?: string | null,
>                     middle_name?: string | null,
>                     suffix?: string | null,
>                     full_name?: string | null
>                   }& any | null
>                 }& any | null,
>                 links?: (
>                   {
>                     href?: string | null,
>                     rel?: string | null,
>                     method?: string | null,
>                     title?: string | null,
>                     mediaType?: string | null,
>                     encType?: string | null,
>                     schema?: {
>                       additionalItems?: {
>                       } | null,
>                       dependencies?: {
>                       } | null,
>                       items?: {
>                       } | null,
>                       definitions?: {
>                       } | null,
>                       patternProperties?: {
>                       } | null,
>                       properties?: {
>                       } | null,
>                       allOf?: {
>                       }[] | null,
>                       anyOf?: {
>                       }[] | null,
>                       oneOf?: {
>                       }[] | null,
>                       not?: {
>                       } | null,
>                       links?: {
>                       }[] | null,
>                       fragmentResolution?: string | null,
>                       media?: {
>                         type?: string | null,
>                         binaryEncoding?: string | null
>                       } | null,
>                       pathStart?: string | null
>                     }& any | null,
>                     targetSchema?: {
>                       additionalItems?: {
>                       } | null,
>                       dependencies?: {
>                       } | null,
>                       items?: {
>                       } | null,
>                       definitions?: {
>                       } | null,
>                       patternProperties?: {
>                       } | null,
>                       properties?: {
>                       } | null,
>                       allOf?: {
>                       }[] | null,
>                       anyOf?: {
>                       }[] | null,
>                       oneOf?: {
>                       }[] | null,
>                       not?: {
>                       } | null,
>                       links?: {
>                       }[] | null,
>                       fragmentResolution?: string | null,
>                       media?: {
>                         type?: string | null,
>                         binaryEncoding?: string | null
>                       } | null,
>                       pathStart?: string | null
>                     }& any | null
>                   }& any
>                 )[] | null
>               }& any
>             )& {
>               customer?: {
>                 id?: string | null,
>                 email_address?: string & any | null,
>                 phone?: {
>                   phone_type?: string | null,
>                   phone_number?: {
>                     national_number?: string | null
>                   }& any | null
>                 }& any | null,
>                 name?: {
>                   prefix?: string | null,
>                   given_name?: string | null,
>                   surname?: string | null,
>                   middle_name?: string | null,
>                   suffix?: string | null,
>                   full_name?: string | null
>                 }& any | null,
>                 merchant_customer_id?: string | null
>               } | null
>             } | null
>           } | null,
>           from_request?: {
>             expiry?: string & any | null,
>             last_digits?: string | null
>           } | null,
>           expiry?: string & any | null,
>           bin_details?: {
>             bin?: string | null,
>             issuing_bank?: string | null,
>             bin_country_code?: string & any | null,
>             products?: string[] | null
>           }& any | null,
>           stored_credential?: {
>             payment_initiator?: string | null,
>             payment_type?: string | null,
>             usage?: string | null,
>             previous_network_transaction_reference?: {
>               id?: string | null,
>               date?: string | null,
>               network?: string & any | null,
>               acquirer_reference_number?: string | null
>             } | null
>           } | null
>         }& any
>       )& {
>         name?: string | null,
>         billing_address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           address_line_3?: string | null,
>           admin_area_4?: string | null,
>           admin_area_3?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null,
>           address_details?: {
>             street_number?: string | null,
>             street_name?: string | null,
>             street_type?: string | null,
>             delivery_service?: string | null,
>             building_name?: string | null,
>             sub_building?: string | null
>           } | null
>         }& any | null,
>         country_code?: string & any | null
>       })& any | null,
>       attributes?: {
>         vault?: {
>           id?: string | null,
>           status?: string | null,
>           customer?: {
>             id?: string | null,
>             email_address?: string & any | null,
>             phone?: {
>               phone_type?: string | null,
>               phone_number?: {
>                 national_number?: string | null
>               }& any | null
>             }& any | null,
>             name?: {
>               prefix?: string | null,
>               given_name?: string | null,
>               surname?: string | null,
>               middle_name?: string | null,
>               suffix?: string | null,
>               full_name?: string | null
>             }& any | null
>           }& any | null,
>           links?: (
>             {
>               href?: string | null,
>               rel?: string | null,
>               method?: string | null,
>               title?: string | null,
>               mediaType?: string | null,
>               encType?: string | null,
>               schema?: {
>                 additionalItems?: {
>                 } | null,
>                 dependencies?: {
>                 } | null,
>                 items?: {
>                 } | null,
>                 definitions?: {
>                 } | null,
>                 patternProperties?: {
>                 } | null,
>                 properties?: {
>                 } | null,
>                 allOf?: {
>                 }[] | null,
>                 anyOf?: {
>                 }[] | null,
>                 oneOf?: {
>                 }[] | null,
>                 not?: {
>                 } | null,
>                 links?: {
>                 }[] | null,
>                 fragmentResolution?: string | null,
>                 media?: {
>                   type?: string | null,
>                   binaryEncoding?: string | null
>                 } | null,
>                 pathStart?: string | null
>               }& any | null,
>               targetSchema?: {
>                 additionalItems?: {
>                 } | null,
>                 dependencies?: {
>                 } | null,
>                 items?: {
>                 } | null,
>                 definitions?: {
>                 } | null,
>                 patternProperties?: {
>                 } | null,
>                 properties?: {
>                 } | null,
>                 allOf?: {
>                 }[] | null,
>                 anyOf?: {
>                 }[] | null,
>                 oneOf?: {
>                 }[] | null,
>                 not?: {
>                 } | null,
>                 links?: {
>                 }[] | null,
>                 fragmentResolution?: string | null,
>                 media?: {
>                   type?: string | null,
>                   binaryEncoding?: string | null
>                 } | null,
>                 pathStart?: string | null
>               }& any | null
>             }& any
>           )[] | null
>         } | null
>       }& any | null,
>       stored_credential?: {
>         payment_initiator?: string | null,
>         payment_type?: string | null,
>         usage?: string | null,
>         previous_network_transaction_reference?: {
>           id?: string | null,
>           date?: string | null,
>           network?: string & any | null,
>           acquirer_reference_number?: string | null
>         } | null
>       } | null
>     } | null,
>     google_pay?: {
>       name?: string & any | null,
>       email_address?: string & any | null,
>       phone_number?: {
>         country_code?: string | null,
>         national_number?: string | null
>       }& any | null,
>       card?: {
>         name?: string | null,
>         last_digits?: string | null,
>         type?: string & any | null,
>         brand?: string & any | null,
>         billing_address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           address_line_3?: string | null,
>           admin_area_4?: string | null,
>           admin_area_3?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null,
>           address_details?: {
>             street_number?: string | null,
>             street_name?: string | null,
>             street_type?: string | null,
>             delivery_service?: string | null,
>             building_name?: string | null,
>             sub_building?: string | null
>           } | null
>         }& any | null,
>         authentication_result?: {
>           liability_shift?: string | null,
>           three_d_secure?: {
>             authentication_status?: string & any | null,
>             enrollment_status?: string & any | null
>           } | null
>         } | null
>       }& any | null
>     } | null,
>     venmo?: {
>       email_address?: string & any | null,
>       account_id?: string & any | null,
>       user_name?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         full_name?: string | null
>       }& any | null,
>       phone_number?: {
>         national_number?: string | null
>       }& any | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       }& any | null,
>       return_flow?: string | null,
>       attributes?: {
>         vault?: (
>           {
>             id?: string | null,
>             status?: string | null,
>             customer?: {
>               id?: string | null,
>               email_address?: string & any | null,
>               phone?: {
>                 phone_type?: string | null,
>                 phone_number?: {
>                   national_number?: string | null
>                 }& any | null
>               }& any | null,
>               name?: {
>                 prefix?: string | null,
>                 given_name?: string | null,
>                 surname?: string | null,
>                 middle_name?: string | null,
>                 suffix?: string | null,
>                 full_name?: string | null
>               }& any | null
>             }& any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null
>           }& any
>         )& {
>           customer?: {
>             id?: string | null,
>             email_address?: string & any | null,
>             phone?: {
>               phone_type?: string | null,
>               phone_number?: {
>                 national_number?: string | null
>               }& any | null
>             }& any | null,
>             name?: {
>               prefix?: string | null,
>               given_name?: string | null,
>               surname?: string | null,
>               middle_name?: string | null,
>               suffix?: string | null,
>               full_name?: string | null
>             }& any | null
>           } | null
>         } | null
>       } | null
>     } | null,
>     crypto?: {
>       country_code?: string & any | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null
>       }& any | null,
>       experience_context?: {
>         brand_name?: string | null,
>         locale?: string & any | null,
>         shipping_preference?: string | null,
>         return_url?: string & any | null,
>         cancel_url?: string & any | null
>       }& any | null
>     } | null
>   } | null,
>   intent?: string | null,
>   payer?: {
>     email_address?: string & any | null,
>     payer_id?: string & any | null,
>     name?: {
>       prefix?: string | null,
>       given_name?: string | null,
>       surname?: string | null,
>       middle_name?: string | null,
>       suffix?: string | null,
>       full_name?: string | null
>     }& any | null,
>     phone?: {
>       phone_type?: string | null,
>       phone_number?: {
>         national_number?: string | null
>       }& any | null
>     }& any | null,
>     birth_date?: string & any | null,
>     tax_info?: {
>       tax_id?: string | null,
>       tax_id_type?: string | null
>     }& any | null,
>     address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       address_line_3?: string | null,
>       admin_area_4?: string | null,
>       admin_area_3?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null,
>       address_details?: {
>         street_number?: string | null,
>         street_name?: string | null,
>         street_type?: string | null,
>         delivery_service?: string | null,
>         building_name?: string | null,
>         sub_building?: string | null
>       } | null
>     }& any | null
>   }& any | null,
>   purchase_units?: (
>     {
>       reference_id?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null,
>         breakdown?: {
>           item_total?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           shipping?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           handling?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           tax_total?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           insurance?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           shipping_discount?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           discount?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null
>         } | null
>       } | null,
>       payee?: {
>         email_address?: string & any | null,
>         merchant_id?: string & any | null
>       }& any | null,
>       payment_instruction?: {
>         platform_fees?: (
>           {
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             payee?: {
>               email_address?: string & any | null,
>               merchant_id?: string & any | null
>             }& any | null
>           }& any
>         )[] | null,
>         disbursement_mode?: string & any | null,
>         payee_pricing_tier_id?: string | null,
>         payee_receivable_fx_rate_id?: string | null
>       } | null,
>       description?: string | null,
>       custom_id?: string | null,
>       invoice_id?: string | null,
>       id?: string | null,
>       soft_descriptor?: string | null,
>       items?: (
>         {
>           name?: string | null,
>           unit_amount?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           tax?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           quantity?: string | null,
>           description?: string | null,
>           sku?: string | null,
>           url?: string | null,
>           category?: string | null,
>           image_url?: string | null,
>           upc?: {
>             type?: string | null,
>             code?: string | null
>           }& any | null,
>           billing_plan?: {
>             billing_cycles?: {
>               tenure_type?: string | null,
>               pricing_scheme?: {
>                 price?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 pricing_model?: string | null,
>                 reload_threshold_amount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null
>               }& any | null,
>               total_cycles?: number | null,
>               sequence?: number | null,
>               start_date?: string & any | null
>             }[] | null,
>             setup_fee?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             name?: string | null
>           } | null
>         }& any
>       )[] | null,
>       shipping?: {
>         name?: {
>           prefix?: string | null,
>           given_name?: string | null,
>           surname?: string | null,
>           middle_name?: string | null,
>           suffix?: string | null,
>           full_name?: string | null
>         }& any | null,
>         email_address?: string & any | null,
>         phone_number?: (
>           {
>             country_code?: string | null,
>             national_number?: string | null,
>             extension_number?: string | null
>           }& any
>         )& (
>           {
>             country_code?: string | null,
>             national_number?: string | null
>           }& any
>         ) | null,
>         type?: string | null,
>         options?: (
>           {
>             id?: string | null,
>             label?: string | null,
>             type?: string & any | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             selected?: boolean | null
>           }& any
>         )[] | null,
>         address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           address_line_3?: string | null,
>           admin_area_4?: string | null,
>           admin_area_3?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null,
>           address_details?: {
>             street_number?: string | null,
>             street_name?: string | null,
>             street_type?: string | null,
>             delivery_service?: string | null,
>             building_name?: string | null,
>             sub_building?: string | null
>           } | null
>         }& any | null,
>         trackers?: {
>           id?: string | null,
>           status?: string | null,
>           items?: (
>             {
>               name?: string | null,
>               quantity?: string | null,
>               sku?: string | null,
>               url?: string | null,
>               image_url?: string | null,
>               upc?: {
>                 type?: string | null,
>                 code?: string | null
>               }& any | null
>             }& any
>           )[] | null,
>           links?: (
>             {
>               href?: string | null,
>               rel?: string | null,
>               method?: string | null,
>               title?: string | null,
>               mediaType?: string | null,
>               encType?: string | null,
>               schema?: {
>                 additionalItems?: {
>                 } | null,
>                 dependencies?: {
>                 } | null,
>                 items?: {
>                 } | null,
>                 definitions?: {
>                 } | null,
>                 patternProperties?: {
>                 } | null,
>                 properties?: {
>                 } | null,
>                 allOf?: {
>                 }[] | null,
>                 anyOf?: {
>                 }[] | null,
>                 oneOf?: {
>                 }[] | null,
>                 not?: {
>                 } | null,
>                 links?: {
>                 }[] | null,
>                 fragmentResolution?: string | null,
>                 media?: {
>                   type?: string | null,
>                   binaryEncoding?: string | null
>                 } | null,
>                 pathStart?: string | null
>               }& any | null,
>               targetSchema?: {
>                 additionalItems?: {
>                 } | null,
>                 dependencies?: {
>                 } | null,
>                 items?: {
>                 } | null,
>                 definitions?: {
>                 } | null,
>                 patternProperties?: {
>                 } | null,
>                 properties?: {
>                 } | null,
>                 allOf?: {
>                 }[] | null,
>                 anyOf?: {
>                 }[] | null,
>                 oneOf?: {
>                 }[] | null,
>                 not?: {
>                 } | null,
>                 links?: {
>                 }[] | null,
>                 fragmentResolution?: string | null,
>                 media?: {
>                   type?: string | null,
>                   binaryEncoding?: string | null
>                 } | null,
>                 pathStart?: string | null
>               }& any | null
>             }& any
>           )[] | null,
>           create_time?: string & any | null,
>           update_time?: string & any | null
>         }[] | null
>       }& any | null,
>       supplementary_data?: {
>         card?: {
>           level_2?: {
>             invoice_id?: string | null,
>             tax_total?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null
>           } | null,
>           level_3?: {
>             shipping_amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             duty_amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             discount_amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             shipping_address?: {
>               address_line_1?: string | null,
>               address_line_2?: string | null,
>               address_line_3?: string | null,
>               admin_area_4?: string | null,
>               admin_area_3?: string | null,
>               admin_area_2?: string | null,
>               admin_area_1?: string | null,
>               postal_code?: string | null,
>               country_code?: string | null,
>               address_details?: {
>                 street_number?: string | null,
>                 street_name?: string | null,
>                 street_type?: string | null,
>                 delivery_service?: string | null,
>                 building_name?: string | null,
>                 sub_building?: string | null
>               } | null
>             }& any | null,
>             ships_from_postal_code?: string | null,
>             line_items?: (
>               {
>                 name?: string | null,
>                 quantity?: string | null,
>                 description?: string | null,
>                 sku?: string | null,
>                 url?: string | null,
>                 image_url?: string | null,
>                 upc?: {
>                   type?: string | null,
>                   code?: string | null
>                 }& any | null,
>                 billing_plan?: {
>                   billing_cycles?: {
>                     tenure_type?: string | null,
>                     pricing_scheme?: {
>                       price?: {
>                         currency_code?: string | null,
>                         value?: string | null
>                       }& any | null,
>                       pricing_model?: string | null,
>                       reload_threshold_amount?: {
>                         currency_code?: string | null,
>                         value?: string | null
>                       }& any | null
>                     }& any | null,
>                     total_cycles?: number | null,
>                     sequence?: number | null,
>                     start_date?: string & any | null
>                   }[] | null,
>                   setup_fee?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   name?: string | null
>                 } | null,
>                 unit_amount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 tax?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 commodity_code?: string | null,
>                 discount_amount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 total_amount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 unit_of_measure?: string | null
>               }& any
>             )[] | null
>           } | null
>         }& any | null,
>         risk?: {
>           customer?: {
>             ip_address?: string & any | null
>           } | null
>         }& any | null
>       }& any | null,
>       payments?: {
>         authorizations?: (
>           {
>             status?: string | null,
>             status_details?: {
>               reason?: string | null
>             }& any | null,
>             id?: string | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null,
>               breakdown?: {
>                 item_total?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 shipping?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 handling?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 tax_total?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 insurance?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 shipping_discount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 discount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null
>               } | null
>             }& any | null,
>             invoice_id?: string | null,
>             custom_id?: string | null,
>             network_transaction_reference?: {
>               id?: string | null,
>               date?: string | null,
>               network?: string & any | null,
>               acquirer_reference_number?: string | null
>             } | null,
>             seller_protection?: {
>               status?: string | null,
>               dispute_categories?: string[] | null
>             }& any | null,
>             expiration_time?: string & any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null,
>             create_time?: string & any | null,
>             update_time?: string & any | null,
>             processor_response?: {
>               avs_code?: string | null,
>               cvv_code?: string | null,
>               response_code?: string | null,
>               payment_advice_code?: string | null
>             }& any | null
>           }& any
>         )[] | null,
>         captures?: (
>           {
>             status?: string | null,
>             status_details?: {
>               reason?: string | null
>             }& any | null,
>             id?: string | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null,
>               breakdown?: {
>                 item_total?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 shipping?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 handling?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 tax_total?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 insurance?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 shipping_discount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 discount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null
>               } | null
>             }& any | null,
>             invoice_id?: string | null,
>             custom_id?: string | null,
>             network_transaction_reference?: {
>               id?: string | null,
>               date?: string | null,
>               network?: string & any | null,
>               acquirer_reference_number?: string | null
>             } | null,
>             seller_protection?: {
>               status?: string | null,
>               dispute_categories?: string[] | null
>             }& any | null,
>             final_capture?: boolean | null,
>             seller_receivable_breakdown?: {
>               gross_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               paypal_fee?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               paypal_fee_in_receivable_currency?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               net_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               receivable_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               exchange_rate?: {
>                 source_currency?: string & any | null,
>                 target_currency?: string & any | null,
>                 value?: string | null
>               }& any | null,
>               platform_fees?: (
>                 {
>                   amount?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   payee?: {
>                     email_address?: string & any | null,
>                     merchant_id?: string & any | null
>                   }& any | null
>                 }& any
>               )[] | null
>             }& any | null,
>             disbursement_mode?: string | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null,
>             processor_response?: {
>               avs_code?: string | null,
>               cvv_code?: string | null,
>               response_code?: string | null,
>               payment_advice_code?: string | null
>             }& any | null,
>             create_time?: string & any | null,
>             update_time?: string & any | null
>           }& any
>         )[] | null,
>         refunds?: (
>           {
>             status?: string | null,
>             status_details?: {
>               reason?: string | null
>             }& any | null,
>             id?: string | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             invoice_id?: string | null,
>             custom_id?: string | null,
>             acquirer_reference_number?: string | null,
>             note_to_payer?: string | null,
>             seller_payable_breakdown?: {
>               gross_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               paypal_fee?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               paypal_fee_in_receivable_currency?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               net_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               net_amount_in_receivable_currency?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               platform_fees?: (
>                 {
>                   amount?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   payee?: {
>                     email_address?: string & any | null,
>                     merchant_id?: string & any | null
>                   }& any | null
>                 }& any
>               )[] | null,
>               net_amount_breakdown?: (
>                 {
>                   payable_amount?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   converted_amount?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   exchange_rate?: {
>                     source_currency?: string & any | null,
>                     target_currency?: string & any | null,
>                     value?: string | null
>                   }& any | null
>                 }& any
>               )[] | null,
>               total_refunded_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null
>             } | null,
>             payer?: {
>               email_address?: string & any | null,
>               merchant_id?: string & any | null
>             }& any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null,
>             create_time?: string & any | null,
>             update_time?: string & any | null
>           }& any
>         )[] | null
>       }& any | null
>     }& any
>   )[] | null,
>   status?: string & any | null,
>   links?: (
>     {
>       href?: string | null,
>       rel?: string | null,
>       method?: string | null,
>       title?: string | null,
>       mediaType?: string | null,
>       encType?: string | null,
>       schema?: {
>         additionalItems?: {
>         } | null,
>         dependencies?: {
>         } | null,
>         items?: {
>         } | null,
>         definitions?: {
>         } | null,
>         patternProperties?: {
>         } | null,
>         properties?: {
>         } | null,
>         allOf?: {
>         }[] | null,
>         anyOf?: {
>         }[] | null,
>         oneOf?: {
>         }[] | null,
>         not?: {
>         } | null,
>         links?: {
>         }[] | null,
>         fragmentResolution?: string | null,
>         media?: {
>           type?: string | null,
>           binaryEncoding?: string | null
>         } | null,
>         pathStart?: string | null
>       }& any | null,
>       targetSchema?: {
>         additionalItems?: {
>         } | null,
>         dependencies?: {
>         } | null,
>         items?: {
>         } | null,
>         definitions?: {
>         } | null,
>         patternProperties?: {
>         } | null,
>         properties?: {
>         } | null,
>         allOf?: {
>         }[] | null,
>         anyOf?: {
>         }[] | null,
>         oneOf?: {
>         }[] | null,
>         not?: {
>         } | null,
>         links?: {
>         }[] | null,
>         fragmentResolution?: string | null,
>         media?: {
>           type?: string | null,
>           binaryEncoding?: string | null
>         } | null,
>         pathStart?: string | null
>       }& any | null
>     }& any
>   )[] | null
> }
> ```

***

### confirmPaymentSource

`orders.confirmPaymentSource`

Confirm the Order

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.orders.confirmPaymentSource({
	id: '5O190127TN364715T',
	payment_source: {},
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `paypal_client_metadata_id` | `string` | No | A Globally Unique Identifier (GUID) value. |
| `id` | `string` | Yes | The ID of the order for which the payer confirms their intent to pay. |
| `paypal_auth_assertion` | `string` | No | Header for an API client-provided JWT assertion that identifies the merchant. Establishing the consent to act-on-behalf of a merchant is a prerequisite for using this header. |
| `prefer` | `string` | No | The preferred server response upon successful completion of the request. Value is:return=minimal. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the id, status and HATEOAS links.return=representation. The server returns a complete resource representation, including the current state of the resource. |
| `payment_source` | `object` | Yes | The payment source definition. |
| `application_context` | `object` | No | Customizes the payer confirmation experience. |

> [accordion] payment\_source full type
>
> ```ts theme={null}
> {
>   card?: (
>     {
>       id?: string & any,
>       name?: string,
>       number?: string,
>       expiry?: string & any,
>       security_code?: string,
>       card_type?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>       type?: (CREDIT | DEBIT | PREPAID | STORE | UNKNOWN)& any,
>       brand?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>       billing_address?: {
>         address_line_1?: string,
>         address_line_2?: string,
>         address_line_3?: string,
>         admin_area_4?: string,
>         admin_area_3?: string,
>         admin_area_2?: string,
>         admin_area_1?: string,
>         postal_code?: string,
>         country_code: string,
>         address_details?: {
>           street_number?: string,
>           street_name?: string,
>           street_type?: string,
>           delivery_service?: string,
>           building_name?: string,
>           sub_building?: string
>         }
>       }& any,
>       attributes?: {
>         customer?: {
>           id?: string,
>           email_address?: string & any,
>           phone?: {
>             phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>             phone_number: {
>               national_number: string
>             }& any
>           }& any,
>           name?: {
>             prefix?: string,
>             given_name?: string,
>             surname?: string,
>             middle_name?: string,
>             suffix?: string,
>             full_name?: string
>           }& any,
>           merchant_customer_id?: string
>         },
>         vault?: {
>           store_in_vault?: ON_SUCCESS
>         }& any,
>         verification?: {
>           method?: SCA_ALWAYS | SCA_WHEN_REQUIRED | 3D_SECURE | AVS_CVV
>         }& any
>       }& any
>     }& any
>   )& {
>     vault_id?: string & any,
>     single_use_token?: string & any,
>     stored_credential?: {
>       payment_initiator: CUSTOMER | MERCHANT,
>       payment_type: ONE_TIME | RECURRING | UNSCHEDULED,
>       usage?: FIRST | SUBSEQUENT | DERIVED,
>       previous_network_transaction_reference?: {
>         id?: string,
>         date?: string,
>         network?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>         acquirer_reference_number?: string
>       }
>     },
>     network_token?: {
>       number: string,
>       expiry: string & any,
>       cryptogram?: string,
>       eci_flag?: MASTERCARD_NON_3D_SECURE_TRANSACTION | MASTERCARD_ATTEMPTED_AUTHENTICATION_TRANSACTION | MASTERCARD_FULLY_AUTHENTICATED_TRANSACTION | FULLY_AUTHENTICATED_TRANSACTION | ATTEMPTED_AUTHENTICATION_TRANSACTION | NON_3D_SECURE_TRANSACTION,
>       token_requestor_id?: string
>     }& any,
>     experience_context?: {
>       return_url?: string & string,
>       cancel_url?: string & string
>     }& any
>   },
>   token?: {
>     id: string,
>     type: BILLING_AGREEMENT
>   },
>   paypal?: {
>     vault_id?: string & any,
>     email_address?: string & any,
>     name?: {
>       prefix?: string,
>       given_name?: string,
>       surname?: string,
>       middle_name?: string,
>       suffix?: string,
>       full_name?: string
>     }& any,
>     phone?: {
>       phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>       phone_number: {
>         national_number: string
>       }& any
>     }& any,
>     birth_date?: string & any,
>     tax_info?: {
>       tax_id: string,
>       tax_id_type: BR_CPF | BR_CNPJ
>     }& any,
>     address?: {
>       address_line_1?: string,
>       address_line_2?: string,
>       address_line_3?: string,
>       admin_area_4?: string,
>       admin_area_3?: string,
>       admin_area_2?: string,
>       admin_area_1?: string,
>       postal_code?: string,
>       country_code: string,
>       address_details?: {
>         street_number?: string,
>         street_name?: string,
>         street_type?: string,
>         delivery_service?: string,
>         building_name?: string,
>         sub_building?: string
>       }
>     }& any,
>     attributes?: {
>       customer?: {
>         id?: string,
>         email_address?: string & any,
>         phone?: {
>           phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>           phone_number: {
>             national_number: string
>           }& any
>         }& any,
>         name?: {
>           prefix?: string,
>           given_name?: string,
>           surname?: string,
>           middle_name?: string,
>           suffix?: string,
>           full_name?: string
>         }& any,
>         merchant_customer_id?: string
>       },
>       vault?: {
>         store_in_vault?: ON_SUCCESS,
>         description?: string,
>         usage_pattern?: IMMEDIATE | DEFERRED | RECURRING_PREPAID | RECURRING_POSTPAID | THRESHOLD_PREPAID | THRESHOLD_POSTPAID | SUBSCRIPTION_PREPAID | SUBSCRIPTION_POSTPAID | UNSCHEDULED_PREPAID | UNSCHEDULED_POSTPAID | INSTALLMENT_PREPAID | INSTALLMENT_POSTPAID,
>         shipping?: {
>           name?: {
>             prefix?: string,
>             given_name?: string,
>             surname?: string,
>             middle_name?: string,
>             suffix?: string,
>             full_name?: string
>           }& any,
>           email_address?: string & any,
>           phone_number?: {
>             country_code: string,
>             national_number: string,
>             extension_number?: string
>           }& any,
>           type?: SHIPPING | PICKUP_IN_PERSON | PICKUP_IN_STORE | PICKUP_FROM_PERSON,
>           options?: (
>             {
>               id: string,
>               label: string,
>               type?: (SHIPPING | PICKUP | PICKUP_IN_STORE | PICKUP_FROM_PERSON)& any,
>               amount?: {
>                 currency_code: string,
>                 value: string
>               }& any,
>               selected: boolean
>             }& any
>           )[],
>           address?: {
>             address_line_1?: string,
>             address_line_2?: string,
>             address_line_3?: string,
>             admin_area_4?: string,
>             admin_area_3?: string,
>             admin_area_2?: string,
>             admin_area_1?: string,
>             postal_code?: string,
>             country_code: string,
>             address_details?: {
>               street_number?: string,
>               street_name?: string,
>               street_type?: string,
>               delivery_service?: string,
>               building_name?: string,
>               sub_building?: string
>             }
>           }& any
>         }& any,
>         usage_type?: MERCHANT | PLATFORM,
>         customer_type?: CONSUMER | BUSINESS,
>         permit_multiple_payment_tokens?: boolean
>       }& any
>     }& any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       contact_preference?: NO_CONTACT_INFO | UPDATE_CONTACT_INFO | RETAIN_CONTACT_INFO,
>       return_url?: string & any,
>       cancel_url?: string & any,
>       app_switch_context?: {
>         native_app?: {
>         },
>         mobile_web?: {
>           buyer_user_agent?: string
>         }
>       }& any,
>       landing_page?: LOGIN | GUEST_CHECKOUT | NO_PREFERENCE | BILLING,
>       user_action?: CONTINUE | PAY_NOW,
>       payment_method_preference?: UNRESTRICTED | IMMEDIATE_PAYMENT_REQUIRED,
>       order_update_callback_config?: {
>         callback_events: (SHIPPING_ADDRESS | SHIPPING_OPTIONS)[],
>         callback_url: string
>       }& any
>     },
>     billing_agreement_id?: string,
>     stored_credential?: {
>       payment_initiator: CUSTOMER | MERCHANT,
>       charge_pattern?: (IMMEDIATE | DEFERRED | RECURRING_PREPAID | RECURRING_POSTPAID | THRESHOLD_PREPAID | THRESHOLD_POSTPAID | SUBSCRIPTION_PREPAID | SUBSCRIPTION_POSTPAID | UNSCHEDULED_PREPAID | UNSCHEDULED_POSTPAID | INSTALLMENT_PREPAID | INSTALLMENT_POSTPAID)& any,
>       usage_pattern?: IMMEDIATE | DEFERRED | RECURRING_PREPAID | RECURRING_POSTPAID | THRESHOLD_PREPAID | THRESHOLD_POSTPAID | SUBSCRIPTION_PREPAID | SUBSCRIPTION_POSTPAID | UNSCHEDULED_PREPAID | UNSCHEDULED_POSTPAID | INSTALLMENT_PREPAID | INSTALLMENT_POSTPAID,
>       usage?: FIRST | SUBSEQUENT | DERIVED
>     }
>   }& any,
>   bancontact?: {
>     name: string & any,
>     country_code: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   blik?: {
>     name: string & any,
>     country_code: string & any,
>     email?: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any,
>       consumer_ip?: string & any,
>       consumer_user_agent?: string
>     }& any,
>     level_0?: {
>       auth_code: string
>     }& any,
>     one_click?: {
>       auth_code?: string,
>       consumer_reference: string,
>       alias_label?: string,
>       alias_key?: string
>     }& any
>   }& any,
>   eps?: {
>     name: string & any,
>     country_code: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   giropay?: {
>     name: string & any,
>     country_code: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   ideal?: {
>     name: string & any,
>     country_code: string & any,
>     bic?: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   mybank?: {
>     name: string & any,
>     country_code: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   p24?: {
>     name: string & any,
>     email: string & any,
>     country_code: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   sofort?: {
>     name: string & any,
>     country_code: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   trustly?: {
>     name: string & any,
>     country_code: string & any,
>     email: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   apple_pay?: {
>     id?: string,
>     name?: string & any,
>     email_address?: string & any,
>     phone_number?: {
>       national_number: string
>     }& any,
>     decrypted_token?: {
>       transaction_amount?: {
>         currency_code: string,
>         value: string
>       }& any,
>       tokenized_card: {
>         id?: string & any,
>         name?: string,
>         number?: string,
>         expiry?: string & any,
>         security_code?: string,
>         card_type?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>         type?: (CREDIT | DEBIT | PREPAID | STORE | UNKNOWN)& any,
>         brand?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>         billing_address?: {
>           address_line_1?: string,
>           address_line_2?: string,
>           address_line_3?: string,
>           admin_area_4?: string,
>           admin_area_3?: string,
>           admin_area_2?: string,
>           admin_area_1?: string,
>           postal_code?: string,
>           country_code: string,
>           address_details?: {
>             street_number?: string,
>             street_name?: string,
>             street_type?: string,
>             delivery_service?: string,
>             building_name?: string,
>             sub_building?: string
>           }
>         }& any,
>         attributes?: {
>           customer?: {
>             id?: string,
>             email_address?: string & any,
>             phone?: {
>               phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>               phone_number: {
>                 national_number: string
>               }& any
>             }& any,
>             name?: {
>               prefix?: string,
>               given_name?: string,
>               surname?: string,
>               middle_name?: string,
>               suffix?: string,
>               full_name?: string
>             }& any,
>             merchant_customer_id?: string
>           },
>           vault?: {
>             store_in_vault?: ON_SUCCESS
>           }& any,
>           verification?: {
>             method?: SCA_ALWAYS | SCA_WHEN_REQUIRED | 3D_SECURE | AVS_CVV
>           }& any
>         }& any
>       }& any,
>       device_manufacturer_id?: string,
>       payment_data_type?: 3DSECURE | EMV,
>       payment_data?: {
>         cryptogram?: string,
>         eci_indicator?: string,
>         emv_data?: string,
>         pin?: string
>       }& any
>     }& any,
>     stored_credential?: {
>       payment_initiator: CUSTOMER | MERCHANT,
>       payment_type: ONE_TIME | RECURRING | UNSCHEDULED,
>       usage?: FIRST | SUBSEQUENT | DERIVED,
>       previous_network_transaction_reference?: {
>         id?: string,
>         date?: string,
>         network?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>         acquirer_reference_number?: string
>       }
>     },
>     vault_id?: string & any,
>     attributes?: {
>       customer?: {
>         id?: string,
>         email_address?: string & any,
>         phone?: {
>           phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>           phone_number: {
>             national_number: string
>           }& any
>         }& any,
>         name?: {
>           prefix?: string,
>           given_name?: string,
>           surname?: string,
>           middle_name?: string,
>           suffix?: string,
>           full_name?: string
>         }& any
>       },
>       vault?: {
>         store_in_vault: ON_SUCCESS
>       }
>     },
>     experience_context?: {
>       return_url: string & any,
>       cancel_url: string & any
>     }
>   }& any,
>   google_pay?: {
>     name?: string & any,
>     email_address?: string & any,
>     phone_number?: {
>       country_code?: string,
>       national_number: string
>     }& any,
>     card?: {
>       name?: string,
>       number?: string,
>       expiry?: string & any,
>       type?: (CREDIT | DEBIT | PREPAID | STORE | UNKNOWN)& any,
>       brand?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>       billing_address?: {
>         address_line_1?: string,
>         address_line_2?: string,
>         address_line_3?: string,
>         admin_area_4?: string,
>         admin_area_3?: string,
>         admin_area_2?: string,
>         admin_area_1?: string,
>         postal_code?: string,
>         country_code: string,
>         address_details?: {
>           street_number?: string,
>           street_name?: string,
>           street_type?: string,
>           delivery_service?: string,
>           building_name?: string,
>           sub_building?: string
>         }
>       }& any
>     }& any,
>     decrypted_token?: {
>       message_id?: string,
>       message_expiration?: string,
>       payment_method: CARD,
>       card: {
>         name?: string,
>         number?: string,
>         expiry?: string & any,
>         type?: (CREDIT | DEBIT | PREPAID | STORE | UNKNOWN)& any,
>         brand?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>         billing_address?: {
>           address_line_1?: string,
>           address_line_2?: string,
>           address_line_3?: string,
>           admin_area_4?: string,
>           admin_area_3?: string,
>           admin_area_2?: string,
>           admin_area_1?: string,
>           postal_code?: string,
>           country_code: string,
>           address_details?: {
>             street_number?: string,
>             street_name?: string,
>             street_type?: string,
>             delivery_service?: string,
>             building_name?: string,
>             sub_building?: string
>           }
>         }& any
>       }& any,
>       authentication_method: PAN_ONLY | CRYPTOGRAM_3DS,
>       cryptogram?: string,
>       eci_indicator?: string
>     }& any,
>     assurance_details?: {
>       account_verified?: boolean,
>       card_holder_authenticated?: boolean
>     }& any,
>     experience_context?: {
>       return_url: string & any,
>       cancel_url: string & any
>     }
>   }& any,
>   venmo?: {
>     vault_id?: string & any,
>     email_address?: string & any,
>     experience_context?: {
>       brand_name?: string,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       order_update_callback_config?: {
>         callback_events: (SHIPPING_ADDRESS | SHIPPING_OPTIONS)[],
>         callback_url: string
>       }& any,
>       user_action?: CONTINUE | PAY_NOW
>     },
>     attributes?: {
>       customer?: {
>         id?: string,
>         email_address?: string & any,
>         phone?: {
>           phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>           phone_number: {
>             national_number: string
>           }& any
>         }& any,
>         name?: {
>           prefix?: string,
>           given_name?: string,
>           surname?: string,
>           middle_name?: string,
>           suffix?: string,
>           full_name?: string
>         }& any
>       },
>       vault?: {
>         store_in_vault: ON_SUCCESS,
>         description?: string,
>         usage_pattern?: IMMEDIATE | DEFERRED | RECURRING_PREPAID | RECURRING_POSTPAID | THRESHOLD_PREPAID | THRESHOLD_POSTPAID,
>         usage_type?: MERCHANT | PLATFORM,
>         customer_type?: CONSUMER | BUSINESS,
>         permit_multiple_payment_tokens?: boolean
>       }& any
>     }& any
>   }& any,
>   crypto?: {
>     country_code: string & any,
>     name: {
>       prefix?: string,
>       given_name: string,
>       surname: string,
>       middle_name?: string
>     }& any,
>     experience_context: {
>       locale?: string & any,
>       return_url: string & any,
>       cancel_url: string & any
>     }& any
>   }& any
> }
> ```

> [accordion] application\_context full type
>
> ```ts theme={null}
> {
>   brand_name?: string,
>   locale?: string & any,
>   return_url?: string,
>   cancel_url?: string,
>   stored_payment_source?: {
>     payment_initiator: CUSTOMER | MERCHANT,
>     payment_type: ONE_TIME | RECURRING | UNSCHEDULED,
>     usage?: FIRST | SUBSEQUENT | DERIVED,
>     previous_network_transaction_reference?: {
>       id?: string,
>       date?: string,
>       network?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>       acquirer_reference_number?: string
>     }
>   }
> }
> ```

**Output:** `object`

> [accordion] Output full type
>
> ```ts theme={null}
> (
>   {
>     create_time?: string & any | null,
>     update_time?: string & any | null
>   }& any
> )& {
>   id?: string | null,
>   payment_source?: {
>     card?: {
>       name?: string | null,
>       last_digits?: string | null,
>       brand?: string & any | null,
>       available_networks?: (string & any)[] | null,
>       type?: string & any | null,
>       authentication_result?: {
>         liability_shift?: string | null,
>         three_d_secure?: {
>           authentication_status?: string & any | null,
>           enrollment_status?: string & any | null
>         } | null
>       } | null,
>       attributes?: {
>         vault?: (
>           {
>             id?: string | null,
>             status?: string | null,
>             customer?: {
>               id?: string | null,
>               email_address?: string & any | null,
>               phone?: {
>                 phone_type?: string | null,
>                 phone_number?: {
>                   national_number?: string | null
>                 }& any | null
>               }& any | null,
>               name?: {
>                 prefix?: string | null,
>                 given_name?: string | null,
>                 surname?: string | null,
>                 middle_name?: string | null,
>                 suffix?: string | null,
>                 full_name?: string | null
>               }& any | null
>             }& any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null
>           }& any
>         )& {
>           customer?: {
>             id?: string | null,
>             email_address?: string & any | null,
>             phone?: {
>               phone_type?: string | null,
>               phone_number?: {
>                 national_number?: string | null
>               }& any | null
>             }& any | null,
>             name?: {
>               prefix?: string | null,
>               given_name?: string | null,
>               surname?: string | null,
>               middle_name?: string | null,
>               suffix?: string | null,
>               full_name?: string | null
>             }& any | null,
>             merchant_customer_id?: string | null
>           } | null
>         } | null
>       } | null,
>       from_request?: {
>         expiry?: string & any | null,
>         last_digits?: string | null
>       } | null,
>       expiry?: string & any | null,
>       bin_details?: {
>         bin?: string | null,
>         issuing_bank?: string | null,
>         bin_country_code?: string & any | null,
>         products?: string[] | null
>       }& any | null,
>       stored_credential?: {
>         payment_initiator?: string | null,
>         payment_type?: string | null,
>         usage?: string | null,
>         previous_network_transaction_reference?: {
>           id?: string | null,
>           date?: string | null,
>           network?: string & any | null,
>           acquirer_reference_number?: string | null
>         } | null
>       } | null
>     } | null,
>     paypal?: {
>       email_address?: string & any | null,
>       account_id?: string & any | null,
>       account_status?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         full_name?: string | null
>       }& any | null,
>       phone_type?: string | null,
>       phone_number?: {
>         national_number?: string | null
>       }& any | null,
>       birth_date?: string & any | null,
>       business_name?: string | null,
>       tax_info?: {
>         tax_id?: string | null,
>         tax_id_type?: string | null
>       }& any | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       }& any | null,
>       attributes?: {
>         vault?: (
>           {
>             id?: string | null,
>             status?: string | null,
>             customer?: {
>               id?: string | null,
>               email_address?: string & any | null,
>               phone?: {
>                 phone_type?: string | null,
>                 phone_number?: {
>                   national_number?: string | null
>                 }& any | null
>               }& any | null,
>               name?: {
>                 prefix?: string | null,
>                 given_name?: string | null,
>                 surname?: string | null,
>                 middle_name?: string | null,
>                 suffix?: string | null,
>                 full_name?: string | null
>               }& any | null
>             }& any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null
>           }& any
>         )& {
>           customer?: {
>             id?: string | null,
>             email_address?: string & any | null,
>             phone?: {
>               phone_type?: string | null,
>               phone_number?: {
>                 national_number?: string | null
>               }& any | null
>             }& any | null,
>             name?: {
>               prefix?: string | null,
>               given_name?: string | null,
>               surname?: string | null,
>               middle_name?: string | null,
>               suffix?: string | null,
>               full_name?: string | null
>             }& any | null,
>             merchant_customer_id?: string | null
>           } | null
>         } | null,
>         cobranded_cards?: (
>           {
>             labels?: string[] | null,
>             payee?: {
>               email_address?: string & any | null,
>               merchant_id?: string & any | null
>             }& any | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null
>           }& any
>         )[] | null
>       } | null,
>       stored_credential?: {
>         payment_initiator?: string | null,
>         charge_pattern?: string & any | null,
>         usage_pattern?: string | null,
>         usage?: string | null
>       } | null,
>       experience_status?: string | null
>     } | null,
>     bancontact?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null,
>       card_last_digits?: string | null
>     } | null,
>     blik?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       email?: string & any | null,
>       one_click?: {
>         consumer_reference?: string | null
>       }& any | null
>     } | null,
>     eps?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null
>     } | null,
>     giropay?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null
>     } | null,
>     ideal?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null
>     } | null,
>     mybank?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null
>     } | null,
>     p24?: {
>       name?: string & any | null,
>       email?: string & any | null,
>       country_code?: string & any | null,
>       payment_descriptor?: string | null,
>       method_id?: string | null,
>       method_description?: string | null
>     } | null,
>     sofort?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null
>     } | null,
>     trustly?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       email?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null
>     } | null,
>     apple_pay?: {
>       id?: string | null,
>       token?: string | null,
>       name?: string & any | null,
>       email_address?: string & any | null,
>       phone_number?: {
>         country_code?: string | null,
>         national_number?: string | null,
>         extension_number?: string | null
>       }& any | null,
>       card?: ((
>         {
>           name?: string | null,
>           last_digits?: string | null,
>           brand?: string & any | null,
>           available_networks?: (string & any)[] | null,
>           type?: string & any | null,
>           authentication_result?: {
>             liability_shift?: string | null,
>             three_d_secure?: {
>               authentication_status?: string & any | null,
>               enrollment_status?: string & any | null
>             } | null
>           } | null,
>           attributes?: {
>             vault?: (
>               {
>                 id?: string | null,
>                 status?: string | null,
>                 customer?: {
>                   id?: string | null,
>                   email_address?: string & any | null,
>                   phone?: {
>                     phone_type?: string | null,
>                     phone_number?: {
>                       national_number?: string | null
>                     }& any | null
>                   }& any | null,
>                   name?: {
>                     prefix?: string | null,
>                     given_name?: string | null,
>                     surname?: string | null,
>                     middle_name?: string | null,
>                     suffix?: string | null,
>                     full_name?: string | null
>                   }& any | null
>                 }& any | null,
>                 links?: (
>                   {
>                     href?: string | null,
>                     rel?: string | null,
>                     method?: string | null,
>                     title?: string | null,
>                     mediaType?: string | null,
>                     encType?: string | null,
>                     schema?: {
>                       additionalItems?: {
>                       } | null,
>                       dependencies?: {
>                       } | null,
>                       items?: {
>                       } | null,
>                       definitions?: {
>                       } | null,
>                       patternProperties?: {
>                       } | null,
>                       properties?: {
>                       } | null,
>                       allOf?: {
>                       }[] | null,
>                       anyOf?: {
>                       }[] | null,
>                       oneOf?: {
>                       }[] | null,
>                       not?: {
>                       } | null,
>                       links?: {
>                       }[] | null,
>                       fragmentResolution?: string | null,
>                       media?: {
>                         type?: string | null,
>                         binaryEncoding?: string | null
>                       } | null,
>                       pathStart?: string | null
>                     }& any | null,
>                     targetSchema?: {
>                       additionalItems?: {
>                       } | null,
>                       dependencies?: {
>                       } | null,
>                       items?: {
>                       } | null,
>                       definitions?: {
>                       } | null,
>                       patternProperties?: {
>                       } | null,
>                       properties?: {
>                       } | null,
>                       allOf?: {
>                       }[] | null,
>                       anyOf?: {
>                       }[] | null,
>                       oneOf?: {
>                       }[] | null,
>                       not?: {
>                       } | null,
>                       links?: {
>                       }[] | null,
>                       fragmentResolution?: string | null,
>                       media?: {
>                         type?: string | null,
>                         binaryEncoding?: string | null
>                       } | null,
>                       pathStart?: string | null
>                     }& any | null
>                   }& any
>                 )[] | null
>               }& any
>             )& {
>               customer?: {
>                 id?: string | null,
>                 email_address?: string & any | null,
>                 phone?: {
>                   phone_type?: string | null,
>                   phone_number?: {
>                     national_number?: string | null
>                   }& any | null
>                 }& any | null,
>                 name?: {
>                   prefix?: string | null,
>                   given_name?: string | null,
>                   surname?: string | null,
>                   middle_name?: string | null,
>                   suffix?: string | null,
>                   full_name?: string | null
>                 }& any | null,
>                 merchant_customer_id?: string | null
>               } | null
>             } | null
>           } | null,
>           from_request?: {
>             expiry?: string & any | null,
>             last_digits?: string | null
>           } | null,
>           expiry?: string & any | null,
>           bin_details?: {
>             bin?: string | null,
>             issuing_bank?: string | null,
>             bin_country_code?: string & any | null,
>             products?: string[] | null
>           }& any | null,
>           stored_credential?: {
>             payment_initiator?: string | null,
>             payment_type?: string | null,
>             usage?: string | null,
>             previous_network_transaction_reference?: {
>               id?: string | null,
>               date?: string | null,
>               network?: string & any | null,
>               acquirer_reference_number?: string | null
>             } | null
>           } | null
>         }& any
>       )& {
>         name?: string | null,
>         billing_address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           address_line_3?: string | null,
>           admin_area_4?: string | null,
>           admin_area_3?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null,
>           address_details?: {
>             street_number?: string | null,
>             street_name?: string | null,
>             street_type?: string | null,
>             delivery_service?: string | null,
>             building_name?: string | null,
>             sub_building?: string | null
>           } | null
>         }& any | null,
>         country_code?: string & any | null
>       })& any | null,
>       attributes?: {
>         vault?: {
>           id?: string | null,
>           status?: string | null,
>           customer?: {
>             id?: string | null,
>             email_address?: string & any | null,
>             phone?: {
>               phone_type?: string | null,
>               phone_number?: {
>                 national_number?: string | null
>               }& any | null
>             }& any | null,
>             name?: {
>               prefix?: string | null,
>               given_name?: string | null,
>               surname?: string | null,
>               middle_name?: string | null,
>               suffix?: string | null,
>               full_name?: string | null
>             }& any | null
>           }& any | null,
>           links?: (
>             {
>               href?: string | null,
>               rel?: string | null,
>               method?: string | null,
>               title?: string | null,
>               mediaType?: string | null,
>               encType?: string | null,
>               schema?: {
>                 additionalItems?: {
>                 } | null,
>                 dependencies?: {
>                 } | null,
>                 items?: {
>                 } | null,
>                 definitions?: {
>                 } | null,
>                 patternProperties?: {
>                 } | null,
>                 properties?: {
>                 } | null,
>                 allOf?: {
>                 }[] | null,
>                 anyOf?: {
>                 }[] | null,
>                 oneOf?: {
>                 }[] | null,
>                 not?: {
>                 } | null,
>                 links?: {
>                 }[] | null,
>                 fragmentResolution?: string | null,
>                 media?: {
>                   type?: string | null,
>                   binaryEncoding?: string | null
>                 } | null,
>                 pathStart?: string | null
>               }& any | null,
>               targetSchema?: {
>                 additionalItems?: {
>                 } | null,
>                 dependencies?: {
>                 } | null,
>                 items?: {
>                 } | null,
>                 definitions?: {
>                 } | null,
>                 patternProperties?: {
>                 } | null,
>                 properties?: {
>                 } | null,
>                 allOf?: {
>                 }[] | null,
>                 anyOf?: {
>                 }[] | null,
>                 oneOf?: {
>                 }[] | null,
>                 not?: {
>                 } | null,
>                 links?: {
>                 }[] | null,
>                 fragmentResolution?: string | null,
>                 media?: {
>                   type?: string | null,
>                   binaryEncoding?: string | null
>                 } | null,
>                 pathStart?: string | null
>               }& any | null
>             }& any
>           )[] | null
>         } | null
>       }& any | null,
>       stored_credential?: {
>         payment_initiator?: string | null,
>         payment_type?: string | null,
>         usage?: string | null,
>         previous_network_transaction_reference?: {
>           id?: string | null,
>           date?: string | null,
>           network?: string & any | null,
>           acquirer_reference_number?: string | null
>         } | null
>       } | null
>     } | null,
>     google_pay?: {
>       name?: string & any | null,
>       email_address?: string & any | null,
>       phone_number?: {
>         country_code?: string | null,
>         national_number?: string | null
>       }& any | null,
>       card?: {
>         name?: string | null,
>         last_digits?: string | null,
>         type?: string & any | null,
>         brand?: string & any | null,
>         billing_address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           address_line_3?: string | null,
>           admin_area_4?: string | null,
>           admin_area_3?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null,
>           address_details?: {
>             street_number?: string | null,
>             street_name?: string | null,
>             street_type?: string | null,
>             delivery_service?: string | null,
>             building_name?: string | null,
>             sub_building?: string | null
>           } | null
>         }& any | null,
>         authentication_result?: {
>           liability_shift?: string | null,
>           three_d_secure?: {
>             authentication_status?: string & any | null,
>             enrollment_status?: string & any | null
>           } | null
>         } | null
>       }& any | null
>     } | null,
>     venmo?: {
>       email_address?: string & any | null,
>       account_id?: string & any | null,
>       user_name?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         full_name?: string | null
>       }& any | null,
>       phone_number?: {
>         national_number?: string | null
>       }& any | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       }& any | null,
>       return_flow?: string | null,
>       attributes?: {
>         vault?: (
>           {
>             id?: string | null,
>             status?: string | null,
>             customer?: {
>               id?: string | null,
>               email_address?: string & any | null,
>               phone?: {
>                 phone_type?: string | null,
>                 phone_number?: {
>                   national_number?: string | null
>                 }& any | null
>               }& any | null,
>               name?: {
>                 prefix?: string | null,
>                 given_name?: string | null,
>                 surname?: string | null,
>                 middle_name?: string | null,
>                 suffix?: string | null,
>                 full_name?: string | null
>               }& any | null
>             }& any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null
>           }& any
>         )& {
>           customer?: {
>             id?: string | null,
>             email_address?: string & any | null,
>             phone?: {
>               phone_type?: string | null,
>               phone_number?: {
>                 national_number?: string | null
>               }& any | null
>             }& any | null,
>             name?: {
>               prefix?: string | null,
>               given_name?: string | null,
>               surname?: string | null,
>               middle_name?: string | null,
>               suffix?: string | null,
>               full_name?: string | null
>             }& any | null
>           } | null
>         } | null
>       } | null
>     } | null,
>     crypto?: {
>       country_code?: string & any | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null
>       }& any | null,
>       experience_context?: {
>         brand_name?: string | null,
>         locale?: string & any | null,
>         shipping_preference?: string | null,
>         return_url?: string & any | null,
>         cancel_url?: string & any | null
>       }& any | null
>     } | null
>   } | null,
>   intent?: string | null,
>   payer?: {
>     email_address?: string & any | null,
>     payer_id?: string & any | null,
>     name?: {
>       prefix?: string | null,
>       given_name?: string | null,
>       surname?: string | null,
>       middle_name?: string | null,
>       suffix?: string | null,
>       full_name?: string | null
>     }& any | null,
>     phone?: {
>       phone_type?: string | null,
>       phone_number?: {
>         national_number?: string | null
>       }& any | null
>     }& any | null,
>     birth_date?: string & any | null,
>     tax_info?: {
>       tax_id?: string | null,
>       tax_id_type?: string | null
>     }& any | null,
>     address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       address_line_3?: string | null,
>       admin_area_4?: string | null,
>       admin_area_3?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null,
>       address_details?: {
>         street_number?: string | null,
>         street_name?: string | null,
>         street_type?: string | null,
>         delivery_service?: string | null,
>         building_name?: string | null,
>         sub_building?: string | null
>       } | null
>     }& any | null
>   }& any | null,
>   purchase_units?: (
>     {
>       reference_id?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null,
>         breakdown?: {
>           item_total?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           shipping?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           handling?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           tax_total?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           insurance?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           shipping_discount?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           discount?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null
>         } | null
>       } | null,
>       payee?: {
>         email_address?: string & any | null,
>         merchant_id?: string & any | null
>       }& any | null,
>       payment_instruction?: {
>         platform_fees?: (
>           {
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             payee?: {
>               email_address?: string & any | null,
>               merchant_id?: string & any | null
>             }& any | null
>           }& any
>         )[] | null,
>         disbursement_mode?: string & any | null,
>         payee_pricing_tier_id?: string | null,
>         payee_receivable_fx_rate_id?: string | null
>       } | null,
>       description?: string | null,
>       custom_id?: string | null,
>       invoice_id?: string | null,
>       id?: string | null,
>       soft_descriptor?: string | null,
>       items?: (
>         {
>           name?: string | null,
>           unit_amount?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           tax?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           quantity?: string | null,
>           description?: string | null,
>           sku?: string | null,
>           url?: string | null,
>           category?: string | null,
>           image_url?: string | null,
>           upc?: {
>             type?: string | null,
>             code?: string | null
>           }& any | null,
>           billing_plan?: {
>             billing_cycles?: {
>               tenure_type?: string | null,
>               pricing_scheme?: {
>                 price?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 pricing_model?: string | null,
>                 reload_threshold_amount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null
>               }& any | null,
>               total_cycles?: number | null,
>               sequence?: number | null,
>               start_date?: string & any | null
>             }[] | null,
>             setup_fee?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             name?: string | null
>           } | null
>         }& any
>       )[] | null,
>       shipping?: {
>         name?: {
>           prefix?: string | null,
>           given_name?: string | null,
>           surname?: string | null,
>           middle_name?: string | null,
>           suffix?: string | null,
>           full_name?: string | null
>         }& any | null,
>         email_address?: string & any | null,
>         phone_number?: (
>           {
>             country_code?: string | null,
>             national_number?: string | null,
>             extension_number?: string | null
>           }& any
>         )& (
>           {
>             country_code?: string | null,
>             national_number?: string | null
>           }& any
>         ) | null,
>         type?: string | null,
>         options?: (
>           {
>             id?: string | null,
>             label?: string | null,
>             type?: string & any | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             selected?: boolean | null
>           }& any
>         )[] | null,
>         address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           address_line_3?: string | null,
>           admin_area_4?: string | null,
>           admin_area_3?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null,
>           address_details?: {
>             street_number?: string | null,
>             street_name?: string | null,
>             street_type?: string | null,
>             delivery_service?: string | null,
>             building_name?: string | null,
>             sub_building?: string | null
>           } | null
>         }& any | null,
>         trackers?: {
>           id?: string | null,
>           status?: string | null,
>           items?: (
>             {
>               name?: string | null,
>               quantity?: string | null,
>               sku?: string | null,
>               url?: string | null,
>               image_url?: string | null,
>               upc?: {
>                 type?: string | null,
>                 code?: string | null
>               }& any | null
>             }& any
>           )[] | null,
>           links?: (
>             {
>               href?: string | null,
>               rel?: string | null,
>               method?: string | null,
>               title?: string | null,
>               mediaType?: string | null,
>               encType?: string | null,
>               schema?: {
>                 additionalItems?: {
>                 } | null,
>                 dependencies?: {
>                 } | null,
>                 items?: {
>                 } | null,
>                 definitions?: {
>                 } | null,
>                 patternProperties?: {
>                 } | null,
>                 properties?: {
>                 } | null,
>                 allOf?: {
>                 }[] | null,
>                 anyOf?: {
>                 }[] | null,
>                 oneOf?: {
>                 }[] | null,
>                 not?: {
>                 } | null,
>                 links?: {
>                 }[] | null,
>                 fragmentResolution?: string | null,
>                 media?: {
>                   type?: string | null,
>                   binaryEncoding?: string | null
>                 } | null,
>                 pathStart?: string | null
>               }& any | null,
>               targetSchema?: {
>                 additionalItems?: {
>                 } | null,
>                 dependencies?: {
>                 } | null,
>                 items?: {
>                 } | null,
>                 definitions?: {
>                 } | null,
>                 patternProperties?: {
>                 } | null,
>                 properties?: {
>                 } | null,
>                 allOf?: {
>                 }[] | null,
>                 anyOf?: {
>                 }[] | null,
>                 oneOf?: {
>                 }[] | null,
>                 not?: {
>                 } | null,
>                 links?: {
>                 }[] | null,
>                 fragmentResolution?: string | null,
>                 media?: {
>                   type?: string | null,
>                   binaryEncoding?: string | null
>                 } | null,
>                 pathStart?: string | null
>               }& any | null
>             }& any
>           )[] | null,
>           create_time?: string & any | null,
>           update_time?: string & any | null
>         }[] | null
>       }& any | null,
>       supplementary_data?: {
>         card?: {
>           level_2?: {
>             invoice_id?: string | null,
>             tax_total?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null
>           } | null,
>           level_3?: {
>             shipping_amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             duty_amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             discount_amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             shipping_address?: {
>               address_line_1?: string | null,
>               address_line_2?: string | null,
>               address_line_3?: string | null,
>               admin_area_4?: string | null,
>               admin_area_3?: string | null,
>               admin_area_2?: string | null,
>               admin_area_1?: string | null,
>               postal_code?: string | null,
>               country_code?: string | null,
>               address_details?: {
>                 street_number?: string | null,
>                 street_name?: string | null,
>                 street_type?: string | null,
>                 delivery_service?: string | null,
>                 building_name?: string | null,
>                 sub_building?: string | null
>               } | null
>             }& any | null,
>             ships_from_postal_code?: string | null,
>             line_items?: (
>               {
>                 name?: string | null,
>                 quantity?: string | null,
>                 description?: string | null,
>                 sku?: string | null,
>                 url?: string | null,
>                 image_url?: string | null,
>                 upc?: {
>                   type?: string | null,
>                   code?: string | null
>                 }& any | null,
>                 billing_plan?: {
>                   billing_cycles?: {
>                     tenure_type?: string | null,
>                     pricing_scheme?: {
>                       price?: {
>                         currency_code?: string | null,
>                         value?: string | null
>                       }& any | null,
>                       pricing_model?: string | null,
>                       reload_threshold_amount?: {
>                         currency_code?: string | null,
>                         value?: string | null
>                       }& any | null
>                     }& any | null,
>                     total_cycles?: number | null,
>                     sequence?: number | null,
>                     start_date?: string & any | null
>                   }[] | null,
>                   setup_fee?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   name?: string | null
>                 } | null,
>                 unit_amount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 tax?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 commodity_code?: string | null,
>                 discount_amount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 total_amount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 unit_of_measure?: string | null
>               }& any
>             )[] | null
>           } | null
>         }& any | null,
>         risk?: {
>           customer?: {
>             ip_address?: string & any | null
>           } | null
>         }& any | null
>       }& any | null,
>       payments?: {
>         authorizations?: (
>           {
>             status?: string | null,
>             status_details?: {
>               reason?: string | null
>             }& any | null,
>             id?: string | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null,
>               breakdown?: {
>                 item_total?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 shipping?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 handling?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 tax_total?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 insurance?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 shipping_discount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 discount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null
>               } | null
>             }& any | null,
>             invoice_id?: string | null,
>             custom_id?: string | null,
>             network_transaction_reference?: {
>               id?: string | null,
>               date?: string | null,
>               network?: string & any | null,
>               acquirer_reference_number?: string | null
>             } | null,
>             seller_protection?: {
>               status?: string | null,
>               dispute_categories?: string[] | null
>             }& any | null,
>             expiration_time?: string & any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null,
>             create_time?: string & any | null,
>             update_time?: string & any | null,
>             processor_response?: {
>               avs_code?: string | null,
>               cvv_code?: string | null,
>               response_code?: string | null,
>               payment_advice_code?: string | null
>             }& any | null
>           }& any
>         )[] | null,
>         captures?: (
>           {
>             status?: string | null,
>             status_details?: {
>               reason?: string | null
>             }& any | null,
>             id?: string | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null,
>               breakdown?: {
>                 item_total?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 shipping?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 handling?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 tax_total?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 insurance?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 shipping_discount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 discount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null
>               } | null
>             }& any | null,
>             invoice_id?: string | null,
>             custom_id?: string | null,
>             network_transaction_reference?: {
>               id?: string | null,
>               date?: string | null,
>               network?: string & any | null,
>               acquirer_reference_number?: string | null
>             } | null,
>             seller_protection?: {
>               status?: string | null,
>               dispute_categories?: string[] | null
>             }& any | null,
>             final_capture?: boolean | null,
>             seller_receivable_breakdown?: {
>               gross_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               paypal_fee?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               paypal_fee_in_receivable_currency?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               net_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               receivable_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               exchange_rate?: {
>                 source_currency?: string & any | null,
>                 target_currency?: string & any | null,
>                 value?: string | null
>               }& any | null,
>               platform_fees?: (
>                 {
>                   amount?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   payee?: {
>                     email_address?: string & any | null,
>                     merchant_id?: string & any | null
>                   }& any | null
>                 }& any
>               )[] | null
>             }& any | null,
>             disbursement_mode?: string | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null,
>             processor_response?: {
>               avs_code?: string | null,
>               cvv_code?: string | null,
>               response_code?: string | null,
>               payment_advice_code?: string | null
>             }& any | null,
>             create_time?: string & any | null,
>             update_time?: string & any | null
>           }& any
>         )[] | null,
>         refunds?: (
>           {
>             status?: string | null,
>             status_details?: {
>               reason?: string | null
>             }& any | null,
>             id?: string | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             invoice_id?: string | null,
>             custom_id?: string | null,
>             acquirer_reference_number?: string | null,
>             note_to_payer?: string | null,
>             seller_payable_breakdown?: {
>               gross_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               paypal_fee?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               paypal_fee_in_receivable_currency?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               net_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               net_amount_in_receivable_currency?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               platform_fees?: (
>                 {
>                   amount?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   payee?: {
>                     email_address?: string & any | null,
>                     merchant_id?: string & any | null
>                   }& any | null
>                 }& any
>               )[] | null,
>               net_amount_breakdown?: (
>                 {
>                   payable_amount?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   converted_amount?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   exchange_rate?: {
>                     source_currency?: string & any | null,
>                     target_currency?: string & any | null,
>                     value?: string | null
>                   }& any | null
>                 }& any
>               )[] | null,
>               total_refunded_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null
>             } | null,
>             payer?: {
>               email_address?: string & any | null,
>               merchant_id?: string & any | null
>             }& any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null,
>             create_time?: string & any | null,
>             update_time?: string & any | null
>           }& any
>         )[] | null
>       }& any | null
>     }& any
>   )[] | null,
>   status?: string & any | null,
>   links?: (
>     {
>       href?: string | null,
>       rel?: string | null,
>       method?: string | null,
>       title?: string | null,
>       mediaType?: string | null,
>       encType?: string | null,
>       schema?: {
>         additionalItems?: {
>         } | null,
>         dependencies?: {
>         } | null,
>         items?: {
>         } | null,
>         definitions?: {
>         } | null,
>         patternProperties?: {
>         } | null,
>         properties?: {
>         } | null,
>         allOf?: {
>         }[] | null,
>         anyOf?: {
>         }[] | null,
>         oneOf?: {
>         }[] | null,
>         not?: {
>         } | null,
>         links?: {
>         }[] | null,
>         fragmentResolution?: string | null,
>         media?: {
>           type?: string | null,
>           binaryEncoding?: string | null
>         } | null,
>         pathStart?: string | null
>       }& any | null,
>       targetSchema?: {
>         additionalItems?: {
>         } | null,
>         dependencies?: {
>         } | null,
>         items?: {
>         } | null,
>         definitions?: {
>         } | null,
>         patternProperties?: {
>         } | null,
>         properties?: {
>         } | null,
>         allOf?: {
>         }[] | null,
>         anyOf?: {
>         }[] | null,
>         oneOf?: {
>         }[] | null,
>         not?: {
>         } | null,
>         links?: {
>         }[] | null,
>         fragmentResolution?: string | null,
>         media?: {
>           type?: string | null,
>           binaryEncoding?: string | null
>         } | null,
>         pathStart?: string | null
>       }& any | null
>     }& any
>   )[] | null
> }
> ```

***

### create

`orders.create`

Create a Checkout order (intent CAPTURE or AUTHORIZE) with purchase units, amounts and an optional payment source; the buyer approves it through the payer-action link

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.orders.create({
	intent: 'CAPTURE',
	purchase_units: [{
		reference_id: 'order-1001',
		amount: { currency_code: 'USD', value: '49.00' },
	}],
	paypal_request_id: '7b92603e-77ed-4896-8e78-5dea2050476a',
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `paypal_request_id` | `string` | No | The server stores keys for 6 hours. The API callers can request the times to up to 72 hours by speaking to their Account Manager. It is mandatory for all single-step create order calls (E.g. Create Order Request with payment source information like Card, PayPal.vault\_id, PayPal.billing\_agreement\_id, etc). |
| `paypal_partner_attribution_id` | `string` | No | PayPal Partner can send a PayPal-Partner-Attribution-Id request header with the value that they have been assigned by the PayPal Partner program. This value is known as a BN Code. In order to reward such partners (through partner programs), all the activities (including API calls) that they are doing on behalf of the merchants need to be tracked. |
| `paypal_client_metadata_id` | `string` | No | A Globally Unique Identifier (GUID) value. |
| `prefer` | `string` | No | The preferred server response upon successful completion of the request. Value is:return=minimal. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the id, status and HATEOAS links.return=representation. The server returns a complete resource representation, including the current state of the resource. |
| `paypal_auth_assertion` | `string` | No | Header for an API client-provided JWT assertion that identifies the merchant. Establishing the consent to act-on-behalf of a merchant is a prerequisite for using this header. |
| `intent` | `CAPTURE \| AUTHORIZE` | Yes | The intent to either capture payment immediately or authorize a payment for an order after order creation. |
| `payer` | `object` | No | — |
| `purchase_units` | `object[]` | Yes | An array of purchase units. Each purchase unit establishes a contract between a payer and the payee. Each purchase unit represents either a full or partial order that the payer intends to purchase from the payee. |
| `payment_source` | `object` | No | The payment source definition. |
| `application_context` | `object` | No | — |

> [accordion] payer full type
>
> ```ts theme={null}
> {
>   email_address?: string & any,
>   payer_id?: string & any,
>   name?: {
>     prefix?: string,
>     given_name?: string,
>     surname?: string,
>     middle_name?: string,
>     suffix?: string,
>     full_name?: string
>   }& any,
>   phone?: {
>     phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>     phone_number: {
>       national_number: string
>     }& any
>   }& any,
>   birth_date?: string & any,
>   tax_info?: {
>     tax_id: string,
>     tax_id_type: BR_CPF | BR_CNPJ
>   }& any,
>   address?: {
>     address_line_1?: string,
>     address_line_2?: string,
>     address_line_3?: string,
>     admin_area_4?: string,
>     admin_area_3?: string,
>     admin_area_2?: string,
>     admin_area_1?: string,
>     postal_code?: string,
>     country_code: string,
>     address_details?: {
>       street_number?: string,
>       street_name?: string,
>       street_type?: string,
>       delivery_service?: string,
>       building_name?: string,
>       sub_building?: string
>     }
>   }& any
> }& any
> ```

> [accordion] purchase\_units full type
>
> ```ts theme={null}
> (
>   {
>     reference_id?: string,
>     amount: {
>       currency_code: string,
>       value: string,
>       breakdown?: {
>         item_total?: {
>           currency_code: string,
>           value: string
>         }& any,
>         shipping?: {
>           currency_code: string,
>           value: string
>         }& any,
>         handling?: {
>           currency_code: string,
>           value: string
>         }& any,
>         tax_total?: {
>           currency_code: string,
>           value: string
>         }& any,
>         insurance?: {
>           currency_code: string,
>           value: string
>         }& any,
>         shipping_discount?: {
>           currency_code: string,
>           value: string
>         }& any,
>         discount?: {
>           currency_code: string,
>           value: string
>         }& any
>       }
>     }& any,
>     payee?: {
>       email_address?: string & any,
>       merchant_id?: string & any
>     }& any,
>     payment_instruction?: {
>       platform_fees?: (
>         {
>           amount: {
>             currency_code: string,
>             value: string
>           }& any,
>           payee?: {
>             email_address?: string & any,
>             merchant_id?: string & any
>           }& any
>         }& any
>       )[],
>       disbursement_mode?: (INSTANT | DELAYED)& any,
>       payee_pricing_tier_id?: string,
>       payee_receivable_fx_rate_id?: string
>     },
>     description?: string,
>     custom_id?: string,
>     invoice_id?: string,
>     soft_descriptor?: string,
>     items?: (
>       {
>         name: string,
>         unit_amount: {
>           currency_code: string,
>           value: string
>         }& any,
>         tax?: {
>           currency_code: string,
>           value: string
>         }& any,
>         quantity: string,
>         description?: string,
>         sku?: string,
>         url?: string,
>         category?: DIGITAL_GOODS | PHYSICAL_GOODS | DONATION,
>         image_url?: string,
>         upc?: {
>           type: UPC-A | UPC-B | UPC-C | UPC-D | UPC-E | UPC-2 | UPC-5,
>           code: string
>         }& any,
>         billing_plan?: {
>           billing_cycles: {
>             tenure_type: REGULAR | TRIAL,
>             pricing_scheme?: {
>               price?: {
>                 currency_code: string,
>                 value: string
>               }& any,
>               pricing_model: FIXED | VARIABLE | AUTO_RELOAD,
>               reload_threshold_amount?: {
>                 currency_code: string,
>                 value: string
>               }& any
>             }& any,
>             total_cycles?: number,
>             sequence?: number,
>             start_date?: string & any
>           }[],
>           setup_fee?: {
>             currency_code: string,
>             value: string
>           }& any,
>           name?: string
>         }
>       }& any
>     )[],
>     shipping?: {
>       name?: {
>         prefix?: string,
>         given_name?: string,
>         surname?: string,
>         middle_name?: string,
>         suffix?: string,
>         full_name?: string
>       }& any,
>       email_address?: string & any,
>       phone_number?: {
>         country_code: string,
>         national_number: string,
>         extension_number?: string
>       }& any,
>       type?: SHIPPING | PICKUP_IN_PERSON | PICKUP_IN_STORE | PICKUP_FROM_PERSON,
>       options?: (
>         {
>           id: string,
>           label: string,
>           type?: (SHIPPING | PICKUP | PICKUP_IN_STORE | PICKUP_FROM_PERSON)& any,
>           amount?: {
>             currency_code: string,
>             value: string
>           }& any,
>           selected: boolean
>         }& any
>       )[],
>       address?: {
>         address_line_1?: string,
>         address_line_2?: string,
>         address_line_3?: string,
>         admin_area_4?: string,
>         admin_area_3?: string,
>         admin_area_2?: string,
>         admin_area_1?: string,
>         postal_code?: string,
>         country_code: string,
>         address_details?: {
>           street_number?: string,
>           street_name?: string,
>           street_type?: string,
>           delivery_service?: string,
>           building_name?: string,
>           sub_building?: string
>         }
>       }& any
>     }& any,
>     supplementary_data?: {
>       card?: {
>         level_2?: {
>           invoice_id?: string,
>           tax_total?: {
>             currency_code: string,
>             value: string
>           }& any
>         },
>         level_3?: {
>           shipping_amount?: {
>             currency_code: string,
>             value: string
>           }& any,
>           duty_amount?: {
>             currency_code: string,
>             value: string
>           }& any,
>           discount_amount?: {
>             currency_code: string,
>             value: string
>           }& any,
>           shipping_address?: {
>             address_line_1?: string,
>             address_line_2?: string,
>             address_line_3?: string,
>             admin_area_4?: string,
>             admin_area_3?: string,
>             admin_area_2?: string,
>             admin_area_1?: string,
>             postal_code?: string,
>             country_code: string,
>             address_details?: {
>               street_number?: string,
>               street_name?: string,
>               street_type?: string,
>               delivery_service?: string,
>               building_name?: string,
>               sub_building?: string
>             }
>           }& any,
>           ships_from_postal_code?: string,
>           line_items?: (
>             {
>               name: string,
>               quantity: string,
>               description?: string,
>               sku?: string,
>               url?: string,
>               image_url?: string,
>               upc?: {
>                 type: UPC-A | UPC-B | UPC-C | UPC-D | UPC-E | UPC-2 | UPC-5,
>                 code: string
>               }& any,
>               billing_plan?: {
>                 billing_cycles: {
>                   tenure_type: REGULAR | TRIAL,
>                   pricing_scheme?: {
>                     price?: {
>                       currency_code: string,
>                       value: string
>                     }& any,
>                     pricing_model: FIXED | VARIABLE | AUTO_RELOAD,
>                     reload_threshold_amount?: {
>                       currency_code: string,
>                       value: string
>                     }& any
>                   }& any,
>                   total_cycles?: number,
>                   sequence?: number,
>                   start_date?: string & any
>                 }[],
>                 setup_fee?: {
>                   currency_code: string,
>                   value: string
>                 }& any,
>                 name?: string
>               },
>               unit_amount?: {
>                 currency_code: string,
>                 value: string
>               }& any,
>               tax?: {
>                 currency_code: string,
>                 value: string
>               }& any,
>               commodity_code?: string,
>               discount_amount?: {
>                 currency_code: string,
>                 value: string
>               }& any,
>               total_amount?: {
>                 currency_code: string,
>                 value: string
>               }& any,
>               unit_of_measure?: string
>             }& any
>           )[]
>         }
>       }& any,
>       risk?: {
>         customer?: {
>           ip_address?: string & any
>         }
>       }& any
>     }& any
>   }& any
> )[]
> ```

> [accordion] payment\_source full type
>
> ```ts theme={null}
> {
>   card?: (
>     {
>       id?: string & any,
>       name?: string,
>       number?: string,
>       expiry?: string & any,
>       security_code?: string,
>       card_type?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>       type?: (CREDIT | DEBIT | PREPAID | STORE | UNKNOWN)& any,
>       brand?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>       billing_address?: {
>         address_line_1?: string,
>         address_line_2?: string,
>         address_line_3?: string,
>         admin_area_4?: string,
>         admin_area_3?: string,
>         admin_area_2?: string,
>         admin_area_1?: string,
>         postal_code?: string,
>         country_code: string,
>         address_details?: {
>           street_number?: string,
>           street_name?: string,
>           street_type?: string,
>           delivery_service?: string,
>           building_name?: string,
>           sub_building?: string
>         }
>       }& any,
>       attributes?: {
>         customer?: {
>           id?: string,
>           email_address?: string & any,
>           phone?: {
>             phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>             phone_number: {
>               national_number: string
>             }& any
>           }& any,
>           name?: {
>             prefix?: string,
>             given_name?: string,
>             surname?: string,
>             middle_name?: string,
>             suffix?: string,
>             full_name?: string
>           }& any,
>           merchant_customer_id?: string
>         },
>         vault?: {
>           store_in_vault?: ON_SUCCESS
>         }& any,
>         verification?: {
>           method?: SCA_ALWAYS | SCA_WHEN_REQUIRED | 3D_SECURE | AVS_CVV
>         }& any
>       }& any
>     }& any
>   )& {
>     vault_id?: string & any,
>     single_use_token?: string & any,
>     stored_credential?: {
>       payment_initiator: CUSTOMER | MERCHANT,
>       payment_type: ONE_TIME | RECURRING | UNSCHEDULED,
>       usage?: FIRST | SUBSEQUENT | DERIVED,
>       previous_network_transaction_reference?: {
>         id?: string,
>         date?: string,
>         network?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>         acquirer_reference_number?: string
>       }
>     },
>     network_token?: {
>       number: string,
>       expiry: string & any,
>       cryptogram?: string,
>       eci_flag?: MASTERCARD_NON_3D_SECURE_TRANSACTION | MASTERCARD_ATTEMPTED_AUTHENTICATION_TRANSACTION | MASTERCARD_FULLY_AUTHENTICATED_TRANSACTION | FULLY_AUTHENTICATED_TRANSACTION | ATTEMPTED_AUTHENTICATION_TRANSACTION | NON_3D_SECURE_TRANSACTION,
>       token_requestor_id?: string
>     }& any,
>     experience_context?: {
>       return_url?: string & string,
>       cancel_url?: string & string
>     }& any
>   },
>   token?: {
>     id: string,
>     type: BILLING_AGREEMENT
>   },
>   paypal?: {
>     vault_id?: string & any,
>     email_address?: string & any,
>     name?: {
>       prefix?: string,
>       given_name?: string,
>       surname?: string,
>       middle_name?: string,
>       suffix?: string,
>       full_name?: string
>     }& any,
>     phone?: {
>       phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>       phone_number: {
>         national_number: string
>       }& any
>     }& any,
>     birth_date?: string & any,
>     tax_info?: {
>       tax_id: string,
>       tax_id_type: BR_CPF | BR_CNPJ
>     }& any,
>     address?: {
>       address_line_1?: string,
>       address_line_2?: string,
>       address_line_3?: string,
>       admin_area_4?: string,
>       admin_area_3?: string,
>       admin_area_2?: string,
>       admin_area_1?: string,
>       postal_code?: string,
>       country_code: string,
>       address_details?: {
>         street_number?: string,
>         street_name?: string,
>         street_type?: string,
>         delivery_service?: string,
>         building_name?: string,
>         sub_building?: string
>       }
>     }& any,
>     attributes?: {
>       customer?: {
>         id?: string,
>         email_address?: string & any,
>         phone?: {
>           phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>           phone_number: {
>             national_number: string
>           }& any
>         }& any,
>         name?: {
>           prefix?: string,
>           given_name?: string,
>           surname?: string,
>           middle_name?: string,
>           suffix?: string,
>           full_name?: string
>         }& any,
>         merchant_customer_id?: string
>       },
>       vault?: {
>         store_in_vault?: ON_SUCCESS,
>         description?: string,
>         usage_pattern?: IMMEDIATE | DEFERRED | RECURRING_PREPAID | RECURRING_POSTPAID | THRESHOLD_PREPAID | THRESHOLD_POSTPAID | SUBSCRIPTION_PREPAID | SUBSCRIPTION_POSTPAID | UNSCHEDULED_PREPAID | UNSCHEDULED_POSTPAID | INSTALLMENT_PREPAID | INSTALLMENT_POSTPAID,
>         shipping?: {
>           name?: {
>             prefix?: string,
>             given_name?: string,
>             surname?: string,
>             middle_name?: string,
>             suffix?: string,
>             full_name?: string
>           }& any,
>           email_address?: string & any,
>           phone_number?: {
>             country_code: string,
>             national_number: string,
>             extension_number?: string
>           }& any,
>           type?: SHIPPING | PICKUP_IN_PERSON | PICKUP_IN_STORE | PICKUP_FROM_PERSON,
>           options?: (
>             {
>               id: string,
>               label: string,
>               type?: (SHIPPING | PICKUP | PICKUP_IN_STORE | PICKUP_FROM_PERSON)& any,
>               amount?: {
>                 currency_code: string,
>                 value: string
>               }& any,
>               selected: boolean
>             }& any
>           )[],
>           address?: {
>             address_line_1?: string,
>             address_line_2?: string,
>             address_line_3?: string,
>             admin_area_4?: string,
>             admin_area_3?: string,
>             admin_area_2?: string,
>             admin_area_1?: string,
>             postal_code?: string,
>             country_code: string,
>             address_details?: {
>               street_number?: string,
>               street_name?: string,
>               street_type?: string,
>               delivery_service?: string,
>               building_name?: string,
>               sub_building?: string
>             }
>           }& any
>         }& any,
>         usage_type?: MERCHANT | PLATFORM,
>         customer_type?: CONSUMER | BUSINESS,
>         permit_multiple_payment_tokens?: boolean
>       }& any
>     }& any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       contact_preference?: NO_CONTACT_INFO | UPDATE_CONTACT_INFO | RETAIN_CONTACT_INFO,
>       return_url?: string & any,
>       cancel_url?: string & any,
>       app_switch_context?: {
>         native_app?: {
>         },
>         mobile_web?: {
>           buyer_user_agent?: string
>         }
>       }& any,
>       landing_page?: LOGIN | GUEST_CHECKOUT | NO_PREFERENCE | BILLING,
>       user_action?: CONTINUE | PAY_NOW,
>       payment_method_preference?: UNRESTRICTED | IMMEDIATE_PAYMENT_REQUIRED,
>       order_update_callback_config?: {
>         callback_events: (SHIPPING_ADDRESS | SHIPPING_OPTIONS)[],
>         callback_url: string
>       }& any
>     },
>     billing_agreement_id?: string,
>     stored_credential?: {
>       payment_initiator: CUSTOMER | MERCHANT,
>       charge_pattern?: (IMMEDIATE | DEFERRED | RECURRING_PREPAID | RECURRING_POSTPAID | THRESHOLD_PREPAID | THRESHOLD_POSTPAID | SUBSCRIPTION_PREPAID | SUBSCRIPTION_POSTPAID | UNSCHEDULED_PREPAID | UNSCHEDULED_POSTPAID | INSTALLMENT_PREPAID | INSTALLMENT_POSTPAID)& any,
>       usage_pattern?: IMMEDIATE | DEFERRED | RECURRING_PREPAID | RECURRING_POSTPAID | THRESHOLD_PREPAID | THRESHOLD_POSTPAID | SUBSCRIPTION_PREPAID | SUBSCRIPTION_POSTPAID | UNSCHEDULED_PREPAID | UNSCHEDULED_POSTPAID | INSTALLMENT_PREPAID | INSTALLMENT_POSTPAID,
>       usage?: FIRST | SUBSEQUENT | DERIVED
>     }
>   }& any,
>   bancontact?: {
>     name: string & any,
>     country_code: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   blik?: {
>     name: string & any,
>     country_code: string & any,
>     email?: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any,
>       consumer_ip?: string & any,
>       consumer_user_agent?: string
>     }& any,
>     level_0?: {
>       auth_code: string
>     }& any,
>     one_click?: {
>       auth_code?: string,
>       consumer_reference: string,
>       alias_label?: string,
>       alias_key?: string
>     }& any
>   }& any,
>   eps?: {
>     name: string & any,
>     country_code: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   giropay?: {
>     name: string & any,
>     country_code: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   ideal?: {
>     name: string & any,
>     country_code: string & any,
>     bic?: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   mybank?: {
>     name: string & any,
>     country_code: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   p24?: {
>     name: string & any,
>     email: string & any,
>     country_code: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   sofort?: {
>     name: string & any,
>     country_code: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   trustly?: {
>     name: string & any,
>     country_code: string & any,
>     email: string & any,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string & any,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       return_url?: string & any,
>       cancel_url?: string & any
>     }& any
>   }& any,
>   apple_pay?: {
>     id?: string,
>     name?: string & any,
>     email_address?: string & any,
>     phone_number?: {
>       national_number: string
>     }& any,
>     decrypted_token?: {
>       transaction_amount?: {
>         currency_code: string,
>         value: string
>       }& any,
>       tokenized_card: {
>         id?: string & any,
>         name?: string,
>         number?: string,
>         expiry?: string & any,
>         security_code?: string,
>         card_type?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>         type?: (CREDIT | DEBIT | PREPAID | STORE | UNKNOWN)& any,
>         brand?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>         billing_address?: {
>           address_line_1?: string,
>           address_line_2?: string,
>           address_line_3?: string,
>           admin_area_4?: string,
>           admin_area_3?: string,
>           admin_area_2?: string,
>           admin_area_1?: string,
>           postal_code?: string,
>           country_code: string,
>           address_details?: {
>             street_number?: string,
>             street_name?: string,
>             street_type?: string,
>             delivery_service?: string,
>             building_name?: string,
>             sub_building?: string
>           }
>         }& any,
>         attributes?: {
>           customer?: {
>             id?: string,
>             email_address?: string & any,
>             phone?: {
>               phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>               phone_number: {
>                 national_number: string
>               }& any
>             }& any,
>             name?: {
>               prefix?: string,
>               given_name?: string,
>               surname?: string,
>               middle_name?: string,
>               suffix?: string,
>               full_name?: string
>             }& any,
>             merchant_customer_id?: string
>           },
>           vault?: {
>             store_in_vault?: ON_SUCCESS
>           }& any,
>           verification?: {
>             method?: SCA_ALWAYS | SCA_WHEN_REQUIRED | 3D_SECURE | AVS_CVV
>           }& any
>         }& any
>       }& any,
>       device_manufacturer_id?: string,
>       payment_data_type?: 3DSECURE | EMV,
>       payment_data?: {
>         cryptogram?: string,
>         eci_indicator?: string,
>         emv_data?: string,
>         pin?: string
>       }& any
>     }& any,
>     stored_credential?: {
>       payment_initiator: CUSTOMER | MERCHANT,
>       payment_type: ONE_TIME | RECURRING | UNSCHEDULED,
>       usage?: FIRST | SUBSEQUENT | DERIVED,
>       previous_network_transaction_reference?: {
>         id?: string,
>         date?: string,
>         network?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>         acquirer_reference_number?: string
>       }
>     },
>     vault_id?: string & any,
>     attributes?: {
>       customer?: {
>         id?: string,
>         email_address?: string & any,
>         phone?: {
>           phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>           phone_number: {
>             national_number: string
>           }& any
>         }& any,
>         name?: {
>           prefix?: string,
>           given_name?: string,
>           surname?: string,
>           middle_name?: string,
>           suffix?: string,
>           full_name?: string
>         }& any
>       },
>       vault?: {
>         store_in_vault: ON_SUCCESS
>       }
>     },
>     experience_context?: {
>       return_url: string & any,
>       cancel_url: string & any
>     }
>   }& any,
>   google_pay?: {
>     name?: string & any,
>     email_address?: string & any,
>     phone_number?: {
>       country_code?: string,
>       national_number: string
>     }& any,
>     card?: {
>       name?: string,
>       number?: string,
>       expiry?: string & any,
>       type?: (CREDIT | DEBIT | PREPAID | STORE | UNKNOWN)& any,
>       brand?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>       billing_address?: {
>         address_line_1?: string,
>         address_line_2?: string,
>         address_line_3?: string,
>         admin_area_4?: string,
>         admin_area_3?: string,
>         admin_area_2?: string,
>         admin_area_1?: string,
>         postal_code?: string,
>         country_code: string,
>         address_details?: {
>           street_number?: string,
>           street_name?: string,
>           street_type?: string,
>           delivery_service?: string,
>           building_name?: string,
>           sub_building?: string
>         }
>       }& any
>     }& any,
>     decrypted_token?: {
>       message_id?: string,
>       message_expiration?: string,
>       payment_method: CARD,
>       card: {
>         name?: string,
>         number?: string,
>         expiry?: string & any,
>         type?: (CREDIT | DEBIT | PREPAID | STORE | UNKNOWN)& any,
>         brand?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>         billing_address?: {
>           address_line_1?: string,
>           address_line_2?: string,
>           address_line_3?: string,
>           admin_area_4?: string,
>           admin_area_3?: string,
>           admin_area_2?: string,
>           admin_area_1?: string,
>           postal_code?: string,
>           country_code: string,
>           address_details?: {
>             street_number?: string,
>             street_name?: string,
>             street_type?: string,
>             delivery_service?: string,
>             building_name?: string,
>             sub_building?: string
>           }
>         }& any
>       }& any,
>       authentication_method: PAN_ONLY | CRYPTOGRAM_3DS,
>       cryptogram?: string,
>       eci_indicator?: string
>     }& any,
>     assurance_details?: {
>       account_verified?: boolean,
>       card_holder_authenticated?: boolean
>     }& any,
>     experience_context?: {
>       return_url: string & any,
>       cancel_url: string & any
>     }
>   }& any,
>   venmo?: {
>     vault_id?: string & any,
>     email_address?: string & any,
>     experience_context?: {
>       brand_name?: string,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       order_update_callback_config?: {
>         callback_events: (SHIPPING_ADDRESS | SHIPPING_OPTIONS)[],
>         callback_url: string
>       }& any,
>       user_action?: CONTINUE | PAY_NOW
>     },
>     attributes?: {
>       customer?: {
>         id?: string,
>         email_address?: string & any,
>         phone?: {
>           phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>           phone_number: {
>             national_number: string
>           }& any
>         }& any,
>         name?: {
>           prefix?: string,
>           given_name?: string,
>           surname?: string,
>           middle_name?: string,
>           suffix?: string,
>           full_name?: string
>         }& any
>       },
>       vault?: {
>         store_in_vault: ON_SUCCESS,
>         description?: string,
>         usage_pattern?: IMMEDIATE | DEFERRED | RECURRING_PREPAID | RECURRING_POSTPAID | THRESHOLD_PREPAID | THRESHOLD_POSTPAID,
>         usage_type?: MERCHANT | PLATFORM,
>         customer_type?: CONSUMER | BUSINESS,
>         permit_multiple_payment_tokens?: boolean
>       }& any
>     }& any
>   }& any,
>   crypto?: {
>     country_code: string & any,
>     name: {
>       prefix?: string,
>       given_name: string,
>       surname: string,
>       middle_name?: string
>     }& any,
>     experience_context: {
>       locale?: string & any,
>       return_url: string & any,
>       cancel_url: string & any
>     }& any
>   }& any
> }
> ```

> [accordion] application\_context full type
>
> ```ts theme={null}
> {
>   brand_name?: string,
>   locale?: string & any,
>   landing_page?: LOGIN | BILLING | NO_PREFERENCE,
>   shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>   user_action?: CONTINUE | PAY_NOW,
>   payment_method?: {
>     payee_preferred?: UNRESTRICTED | IMMEDIATE_PAYMENT_REQUIRED,
>     standard_entry_class_code?: TEL | WEB | CCD | PPD
>   }& any,
>   return_url?: string,
>   cancel_url?: string,
>   stored_payment_source?: {
>     payment_initiator: CUSTOMER | MERCHANT,
>     payment_type: ONE_TIME | RECURRING | UNSCHEDULED,
>     usage?: FIRST | SUBSEQUENT | DERIVED,
>     previous_network_transaction_reference?: {
>       id?: string,
>       date?: string,
>       network?: (VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | CARTE_BANCAIRE | STAR_ACCESS | PULSE | NYCE | ACCEL | UNKNOWN)& any,
>       acquirer_reference_number?: string
>     }
>   }& any
> }& any
> ```

**Output:** `object`

> [accordion] Output full type
>
> ```ts theme={null}
> (
>   {
>     create_time?: string & any | null,
>     update_time?: string & any | null
>   }& any
> )& {
>   id?: string | null,
>   payment_source?: {
>     card?: {
>       name?: string | null,
>       last_digits?: string | null,
>       brand?: string & any | null,
>       available_networks?: (string & any)[] | null,
>       type?: string & any | null,
>       authentication_result?: {
>         liability_shift?: string | null,
>         three_d_secure?: {
>           authentication_status?: string & any | null,
>           enrollment_status?: string & any | null
>         } | null
>       } | null,
>       attributes?: {
>         vault?: (
>           {
>             id?: string | null,
>             status?: string | null,
>             customer?: {
>               id?: string | null,
>               email_address?: string & any | null,
>               phone?: {
>                 phone_type?: string | null,
>                 phone_number?: {
>                   national_number?: string | null
>                 }& any | null
>               }& any | null,
>               name?: {
>                 prefix?: string | null,
>                 given_name?: string | null,
>                 surname?: string | null,
>                 middle_name?: string | null,
>                 suffix?: string | null,
>                 full_name?: string | null
>               }& any | null
>             }& any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null
>           }& any
>         )& {
>           customer?: {
>             id?: string | null,
>             email_address?: string & any | null,
>             phone?: {
>               phone_type?: string | null,
>               phone_number?: {
>                 national_number?: string | null
>               }& any | null
>             }& any | null,
>             name?: {
>               prefix?: string | null,
>               given_name?: string | null,
>               surname?: string | null,
>               middle_name?: string | null,
>               suffix?: string | null,
>               full_name?: string | null
>             }& any | null,
>             merchant_customer_id?: string | null
>           } | null
>         } | null
>       } | null,
>       from_request?: {
>         expiry?: string & any | null,
>         last_digits?: string | null
>       } | null,
>       expiry?: string & any | null,
>       bin_details?: {
>         bin?: string | null,
>         issuing_bank?: string | null,
>         bin_country_code?: string & any | null,
>         products?: string[] | null
>       }& any | null,
>       stored_credential?: {
>         payment_initiator?: string | null,
>         payment_type?: string | null,
>         usage?: string | null,
>         previous_network_transaction_reference?: {
>           id?: string | null,
>           date?: string | null,
>           network?: string & any | null,
>           acquirer_reference_number?: string | null
>         } | null
>       } | null
>     } | null,
>     paypal?: {
>       email_address?: string & any | null,
>       account_id?: string & any | null,
>       account_status?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         full_name?: string | null
>       }& any | null,
>       phone_type?: string | null,
>       phone_number?: {
>         national_number?: string | null
>       }& any | null,
>       birth_date?: string & any | null,
>       business_name?: string | null,
>       tax_info?: {
>         tax_id?: string | null,
>         tax_id_type?: string | null
>       }& any | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       }& any | null,
>       attributes?: {
>         vault?: (
>           {
>             id?: string | null,
>             status?: string | null,
>             customer?: {
>               id?: string | null,
>               email_address?: string & any | null,
>               phone?: {
>                 phone_type?: string | null,
>                 phone_number?: {
>                   national_number?: string | null
>                 }& any | null
>               }& any | null,
>               name?: {
>                 prefix?: string | null,
>                 given_name?: string | null,
>                 surname?: string | null,
>                 middle_name?: string | null,
>                 suffix?: string | null,
>                 full_name?: string | null
>               }& any | null
>             }& any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null
>           }& any
>         )& {
>           customer?: {
>             id?: string | null,
>             email_address?: string & any | null,
>             phone?: {
>               phone_type?: string | null,
>               phone_number?: {
>                 national_number?: string | null
>               }& any | null
>             }& any | null,
>             name?: {
>               prefix?: string | null,
>               given_name?: string | null,
>               surname?: string | null,
>               middle_name?: string | null,
>               suffix?: string | null,
>               full_name?: string | null
>             }& any | null,
>             merchant_customer_id?: string | null
>           } | null
>         } | null,
>         cobranded_cards?: (
>           {
>             labels?: string[] | null,
>             payee?: {
>               email_address?: string & any | null,
>               merchant_id?: string & any | null
>             }& any | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null
>           }& any
>         )[] | null
>       } | null,
>       stored_credential?: {
>         payment_initiator?: string | null,
>         charge_pattern?: string & any | null,
>         usage_pattern?: string | null,
>         usage?: string | null
>       } | null,
>       experience_status?: string | null
>     } | null,
>     bancontact?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null,
>       card_last_digits?: string | null
>     } | null,
>     blik?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       email?: string & any | null,
>       one_click?: {
>         consumer_reference?: string | null
>       }& any | null
>     } | null,
>     eps?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null
>     } | null,
>     giropay?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null
>     } | null,
>     ideal?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null
>     } | null,
>     mybank?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null
>     } | null,
>     p24?: {
>       name?: string & any | null,
>       email?: string & any | null,
>       country_code?: string & any | null,
>       payment_descriptor?: string | null,
>       method_id?: string | null,
>       method_description?: string | null
>     } | null,
>     sofort?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null
>     } | null,
>     trustly?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       email?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null
>     } | null,
>     apple_pay?: {
>       id?: string | null,
>       token?: string | null,
>       name?: string & any | null,
>       email_address?: string & any | null,
>       phone_number?: {
>         country_code?: string | null,
>         national_number?: string | null,
>         extension_number?: string | null
>       }& any | null,
>       card?: ((
>         {
>           name?: string | null,
>           last_digits?: string | null,
>           brand?: string & any | null,
>           available_networks?: (string & any)[] | null,
>           type?: string & any | null,
>           authentication_result?: {
>             liability_shift?: string | null,
>             three_d_secure?: {
>               authentication_status?: string & any | null,
>               enrollment_status?: string & any | null
>             } | null
>           } | null,
>           attributes?: {
>             vault?: (
>               {
>                 id?: string | null,
>                 status?: string | null,
>                 customer?: {
>                   id?: string | null,
>                   email_address?: string & any | null,
>                   phone?: {
>                     phone_type?: string | null,
>                     phone_number?: {
>                       national_number?: string | null
>                     }& any | null
>                   }& any | null,
>                   name?: {
>                     prefix?: string | null,
>                     given_name?: string | null,
>                     surname?: string | null,
>                     middle_name?: string | null,
>                     suffix?: string | null,
>                     full_name?: string | null
>                   }& any | null
>                 }& any | null,
>                 links?: (
>                   {
>                     href?: string | null,
>                     rel?: string | null,
>                     method?: string | null,
>                     title?: string | null,
>                     mediaType?: string | null,
>                     encType?: string | null,
>                     schema?: {
>                       additionalItems?: {
>                       } | null,
>                       dependencies?: {
>                       } | null,
>                       items?: {
>                       } | null,
>                       definitions?: {
>                       } | null,
>                       patternProperties?: {
>                       } | null,
>                       properties?: {
>                       } | null,
>                       allOf?: {
>                       }[] | null,
>                       anyOf?: {
>                       }[] | null,
>                       oneOf?: {
>                       }[] | null,
>                       not?: {
>                       } | null,
>                       links?: {
>                       }[] | null,
>                       fragmentResolution?: string | null,
>                       media?: {
>                         type?: string | null,
>                         binaryEncoding?: string | null
>                       } | null,
>                       pathStart?: string | null
>                     }& any | null,
>                     targetSchema?: {
>                       additionalItems?: {
>                       } | null,
>                       dependencies?: {
>                       } | null,
>                       items?: {
>                       } | null,
>                       definitions?: {
>                       } | null,
>                       patternProperties?: {
>                       } | null,
>                       properties?: {
>                       } | null,
>                       allOf?: {
>                       }[] | null,
>                       anyOf?: {
>                       }[] | null,
>                       oneOf?: {
>                       }[] | null,
>                       not?: {
>                       } | null,
>                       links?: {
>                       }[] | null,
>                       fragmentResolution?: string | null,
>                       media?: {
>                         type?: string | null,
>                         binaryEncoding?: string | null
>                       } | null,
>                       pathStart?: string | null
>                     }& any | null
>                   }& any
>                 )[] | null
>               }& any
>             )& {
>               customer?: {
>                 id?: string | null,
>                 email_address?: string & any | null,
>                 phone?: {
>                   phone_type?: string | null,
>                   phone_number?: {
>                     national_number?: string | null
>                   }& any | null
>                 }& any | null,
>                 name?: {
>                   prefix?: string | null,
>                   given_name?: string | null,
>                   surname?: string | null,
>                   middle_name?: string | null,
>                   suffix?: string | null,
>                   full_name?: string | null
>                 }& any | null,
>                 merchant_customer_id?: string | null
>               } | null
>             } | null
>           } | null,
>           from_request?: {
>             expiry?: string & any | null,
>             last_digits?: string | null
>           } | null,
>           expiry?: string & any | null,
>           bin_details?: {
>             bin?: string | null,
>             issuing_bank?: string | null,
>             bin_country_code?: string & any | null,
>             products?: string[] | null
>           }& any | null,
>           stored_credential?: {
>             payment_initiator?: string | null,
>             payment_type?: string | null,
>             usage?: string | null,
>             previous_network_transaction_reference?: {
>               id?: string | null,
>               date?: string | null,
>               network?: string & any | null,
>               acquirer_reference_number?: string | null
>             } | null
>           } | null
>         }& any
>       )& {
>         name?: string | null,
>         billing_address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           address_line_3?: string | null,
>           admin_area_4?: string | null,
>           admin_area_3?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null,
>           address_details?: {
>             street_number?: string | null,
>             street_name?: string | null,
>             street_type?: string | null,
>             delivery_service?: string | null,
>             building_name?: string | null,
>             sub_building?: string | null
>           } | null
>         }& any | null,
>         country_code?: string & any | null
>       })& any | null,
>       attributes?: {
>         vault?: {
>           id?: string | null,
>           status?: string | null,
>           customer?: {
>             id?: string | null,
>             email_address?: string & any | null,
>             phone?: {
>               phone_type?: string | null,
>               phone_number?: {
>                 national_number?: string | null
>               }& any | null
>             }& any | null,
>             name?: {
>               prefix?: string | null,
>               given_name?: string | null,
>               surname?: string | null,
>               middle_name?: string | null,
>               suffix?: string | null,
>               full_name?: string | null
>             }& any | null
>           }& any | null,
>           links?: (
>             {
>               href?: string | null,
>               rel?: string | null,
>               method?: string | null,
>               title?: string | null,
>               mediaType?: string | null,
>               encType?: string | null,
>               schema?: {
>                 additionalItems?: {
>                 } | null,
>                 dependencies?: {
>                 } | null,
>                 items?: {
>                 } | null,
>                 definitions?: {
>                 } | null,
>                 patternProperties?: {
>                 } | null,
>                 properties?: {
>                 } | null,
>                 allOf?: {
>                 }[] | null,
>                 anyOf?: {
>                 }[] | null,
>                 oneOf?: {
>                 }[] | null,
>                 not?: {
>                 } | null,
>                 links?: {
>                 }[] | null,
>                 fragmentResolution?: string | null,
>                 media?: {
>                   type?: string | null,
>                   binaryEncoding?: string | null
>                 } | null,
>                 pathStart?: string | null
>               }& any | null,
>               targetSchema?: {
>                 additionalItems?: {
>                 } | null,
>                 dependencies?: {
>                 } | null,
>                 items?: {
>                 } | null,
>                 definitions?: {
>                 } | null,
>                 patternProperties?: {
>                 } | null,
>                 properties?: {
>                 } | null,
>                 allOf?: {
>                 }[] | null,
>                 anyOf?: {
>                 }[] | null,
>                 oneOf?: {
>                 }[] | null,
>                 not?: {
>                 } | null,
>                 links?: {
>                 }[] | null,
>                 fragmentResolution?: string | null,
>                 media?: {
>                   type?: string | null,
>                   binaryEncoding?: string | null
>                 } | null,
>                 pathStart?: string | null
>               }& any | null
>             }& any
>           )[] | null
>         } | null
>       }& any | null,
>       stored_credential?: {
>         payment_initiator?: string | null,
>         payment_type?: string | null,
>         usage?: string | null,
>         previous_network_transaction_reference?: {
>           id?: string | null,
>           date?: string | null,
>           network?: string & any | null,
>           acquirer_reference_number?: string | null
>         } | null
>       } | null
>     } | null,
>     google_pay?: {
>       name?: string & any | null,
>       email_address?: string & any | null,
>       phone_number?: {
>         country_code?: string | null,
>         national_number?: string | null
>       }& any | null,
>       card?: {
>         name?: string | null,
>         last_digits?: string | null,
>         type?: string & any | null,
>         brand?: string & any | null,
>         billing_address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           address_line_3?: string | null,
>           admin_area_4?: string | null,
>           admin_area_3?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null,
>           address_details?: {
>             street_number?: string | null,
>             street_name?: string | null,
>             street_type?: string | null,
>             delivery_service?: string | null,
>             building_name?: string | null,
>             sub_building?: string | null
>           } | null
>         }& any | null,
>         authentication_result?: {
>           liability_shift?: string | null,
>           three_d_secure?: {
>             authentication_status?: string & any | null,
>             enrollment_status?: string & any | null
>           } | null
>         } | null
>       }& any | null
>     } | null,
>     venmo?: {
>       email_address?: string & any | null,
>       account_id?: string & any | null,
>       user_name?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         full_name?: string | null
>       }& any | null,
>       phone_number?: {
>         national_number?: string | null
>       }& any | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       }& any | null,
>       return_flow?: string | null,
>       attributes?: {
>         vault?: (
>           {
>             id?: string | null,
>             status?: string | null,
>             customer?: {
>               id?: string | null,
>               email_address?: string & any | null,
>               phone?: {
>                 phone_type?: string | null,
>                 phone_number?: {
>                   national_number?: string | null
>                 }& any | null
>               }& any | null,
>               name?: {
>                 prefix?: string | null,
>                 given_name?: string | null,
>                 surname?: string | null,
>                 middle_name?: string | null,
>                 suffix?: string | null,
>                 full_name?: string | null
>               }& any | null
>             }& any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null
>           }& any
>         )& {
>           customer?: {
>             id?: string | null,
>             email_address?: string & any | null,
>             phone?: {
>               phone_type?: string | null,
>               phone_number?: {
>                 national_number?: string | null
>               }& any | null
>             }& any | null,
>             name?: {
>               prefix?: string | null,
>               given_name?: string | null,
>               surname?: string | null,
>               middle_name?: string | null,
>               suffix?: string | null,
>               full_name?: string | null
>             }& any | null
>           } | null
>         } | null
>       } | null
>     } | null,
>     crypto?: {
>       country_code?: string & any | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null
>       }& any | null,
>       experience_context?: {
>         brand_name?: string | null,
>         locale?: string & any | null,
>         shipping_preference?: string | null,
>         return_url?: string & any | null,
>         cancel_url?: string & any | null
>       }& any | null
>     } | null
>   } | null,
>   intent?: string | null,
>   payer?: {
>     email_address?: string & any | null,
>     payer_id?: string & any | null,
>     name?: {
>       prefix?: string | null,
>       given_name?: string | null,
>       surname?: string | null,
>       middle_name?: string | null,
>       suffix?: string | null,
>       full_name?: string | null
>     }& any | null,
>     phone?: {
>       phone_type?: string | null,
>       phone_number?: {
>         national_number?: string | null
>       }& any | null
>     }& any | null,
>     birth_date?: string & any | null,
>     tax_info?: {
>       tax_id?: string | null,
>       tax_id_type?: string | null
>     }& any | null,
>     address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       address_line_3?: string | null,
>       admin_area_4?: string | null,
>       admin_area_3?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null,
>       address_details?: {
>         street_number?: string | null,
>         street_name?: string | null,
>         street_type?: string | null,
>         delivery_service?: string | null,
>         building_name?: string | null,
>         sub_building?: string | null
>       } | null
>     }& any | null
>   }& any | null,
>   purchase_units?: (
>     {
>       reference_id?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null,
>         breakdown?: {
>           item_total?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           shipping?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           handling?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           tax_total?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           insurance?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           shipping_discount?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           discount?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null
>         } | null
>       } | null,
>       payee?: {
>         email_address?: string & any | null,
>         merchant_id?: string & any | null
>       }& any | null,
>       payment_instruction?: {
>         platform_fees?: (
>           {
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             payee?: {
>               email_address?: string & any | null,
>               merchant_id?: string & any | null
>             }& any | null
>           }& any
>         )[] | null,
>         disbursement_mode?: string & any | null,
>         payee_pricing_tier_id?: string | null,
>         payee_receivable_fx_rate_id?: string | null
>       } | null,
>       description?: string | null,
>       custom_id?: string | null,
>       invoice_id?: string | null,
>       id?: string | null,
>       soft_descriptor?: string | null,
>       items?: (
>         {
>           name?: string | null,
>           unit_amount?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           tax?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           quantity?: string | null,
>           description?: string | null,
>           sku?: string | null,
>           url?: string | null,
>           category?: string | null,
>           image_url?: string | null,
>           upc?: {
>             type?: string | null,
>             code?: string | null
>           }& any | null,
>           billing_plan?: {
>             billing_cycles?: {
>               tenure_type?: string | null,
>               pricing_scheme?: {
>                 price?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 pricing_model?: string | null,
>                 reload_threshold_amount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null
>               }& any | null,
>               total_cycles?: number | null,
>               sequence?: number | null,
>               start_date?: string & any | null
>             }[] | null,
>             setup_fee?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             name?: string | null
>           } | null
>         }& any
>       )[] | null,
>       shipping?: {
>         name?: {
>           prefix?: string | null,
>           given_name?: string | null,
>           surname?: string | null,
>           middle_name?: string | null,
>           suffix?: string | null,
>           full_name?: string | null
>         }& any | null,
>         email_address?: string & any | null,
>         phone_number?: (
>           {
>             country_code?: string | null,
>             national_number?: string | null,
>             extension_number?: string | null
>           }& any
>         )& (
>           {
>             country_code?: string | null,
>             national_number?: string | null
>           }& any
>         ) | null,
>         type?: string | null,
>         options?: (
>           {
>             id?: string | null,
>             label?: string | null,
>             type?: string & any | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             selected?: boolean | null
>           }& any
>         )[] | null,
>         address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           address_line_3?: string | null,
>           admin_area_4?: string | null,
>           admin_area_3?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null,
>           address_details?: {
>             street_number?: string | null,
>             street_name?: string | null,
>             street_type?: string | null,
>             delivery_service?: string | null,
>             building_name?: string | null,
>             sub_building?: string | null
>           } | null
>         }& any | null,
>         trackers?: {
>           id?: string | null,
>           status?: string | null,
>           items?: (
>             {
>               name?: string | null,
>               quantity?: string | null,
>               sku?: string | null,
>               url?: string | null,
>               image_url?: string | null,
>               upc?: {
>                 type?: string | null,
>                 code?: string | null
>               }& any | null
>             }& any
>           )[] | null,
>           links?: (
>             {
>               href?: string | null,
>               rel?: string | null,
>               method?: string | null,
>               title?: string | null,
>               mediaType?: string | null,
>               encType?: string | null,
>               schema?: {
>                 additionalItems?: {
>                 } | null,
>                 dependencies?: {
>                 } | null,
>                 items?: {
>                 } | null,
>                 definitions?: {
>                 } | null,
>                 patternProperties?: {
>                 } | null,
>                 properties?: {
>                 } | null,
>                 allOf?: {
>                 }[] | null,
>                 anyOf?: {
>                 }[] | null,
>                 oneOf?: {
>                 }[] | null,
>                 not?: {
>                 } | null,
>                 links?: {
>                 }[] | null,
>                 fragmentResolution?: string | null,
>                 media?: {
>                   type?: string | null,
>                   binaryEncoding?: string | null
>                 } | null,
>                 pathStart?: string | null
>               }& any | null,
>               targetSchema?: {
>                 additionalItems?: {
>                 } | null,
>                 dependencies?: {
>                 } | null,
>                 items?: {
>                 } | null,
>                 definitions?: {
>                 } | null,
>                 patternProperties?: {
>                 } | null,
>                 properties?: {
>                 } | null,
>                 allOf?: {
>                 }[] | null,
>                 anyOf?: {
>                 }[] | null,
>                 oneOf?: {
>                 }[] | null,
>                 not?: {
>                 } | null,
>                 links?: {
>                 }[] | null,
>                 fragmentResolution?: string | null,
>                 media?: {
>                   type?: string | null,
>                   binaryEncoding?: string | null
>                 } | null,
>                 pathStart?: string | null
>               }& any | null
>             }& any
>           )[] | null,
>           create_time?: string & any | null,
>           update_time?: string & any | null
>         }[] | null
>       }& any | null,
>       supplementary_data?: {
>         card?: {
>           level_2?: {
>             invoice_id?: string | null,
>             tax_total?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null
>           } | null,
>           level_3?: {
>             shipping_amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             duty_amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             discount_amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             shipping_address?: {
>               address_line_1?: string | null,
>               address_line_2?: string | null,
>               address_line_3?: string | null,
>               admin_area_4?: string | null,
>               admin_area_3?: string | null,
>               admin_area_2?: string | null,
>               admin_area_1?: string | null,
>               postal_code?: string | null,
>               country_code?: string | null,
>               address_details?: {
>                 street_number?: string | null,
>                 street_name?: string | null,
>                 street_type?: string | null,
>                 delivery_service?: string | null,
>                 building_name?: string | null,
>                 sub_building?: string | null
>               } | null
>             }& any | null,
>             ships_from_postal_code?: string | null,
>             line_items?: (
>               {
>                 name?: string | null,
>                 quantity?: string | null,
>                 description?: string | null,
>                 sku?: string | null,
>                 url?: string | null,
>                 image_url?: string | null,
>                 upc?: {
>                   type?: string | null,
>                   code?: string | null
>                 }& any | null,
>                 billing_plan?: {
>                   billing_cycles?: {
>                     tenure_type?: string | null,
>                     pricing_scheme?: {
>                       price?: {
>                         currency_code?: string | null,
>                         value?: string | null
>                       }& any | null,
>                       pricing_model?: string | null,
>                       reload_threshold_amount?: {
>                         currency_code?: string | null,
>                         value?: string | null
>                       }& any | null
>                     }& any | null,
>                     total_cycles?: number | null,
>                     sequence?: number | null,
>                     start_date?: string & any | null
>                   }[] | null,
>                   setup_fee?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   name?: string | null
>                 } | null,
>                 unit_amount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 tax?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 commodity_code?: string | null,
>                 discount_amount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 total_amount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 unit_of_measure?: string | null
>               }& any
>             )[] | null
>           } | null
>         }& any | null,
>         risk?: {
>           customer?: {
>             ip_address?: string & any | null
>           } | null
>         }& any | null
>       }& any | null,
>       payments?: {
>         authorizations?: (
>           {
>             status?: string | null,
>             status_details?: {
>               reason?: string | null
>             }& any | null,
>             id?: string | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null,
>               breakdown?: {
>                 item_total?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 shipping?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 handling?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 tax_total?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 insurance?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 shipping_discount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 discount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null
>               } | null
>             }& any | null,
>             invoice_id?: string | null,
>             custom_id?: string | null,
>             network_transaction_reference?: {
>               id?: string | null,
>               date?: string | null,
>               network?: string & any | null,
>               acquirer_reference_number?: string | null
>             } | null,
>             seller_protection?: {
>               status?: string | null,
>               dispute_categories?: string[] | null
>             }& any | null,
>             expiration_time?: string & any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null,
>             create_time?: string & any | null,
>             update_time?: string & any | null,
>             processor_response?: {
>               avs_code?: string | null,
>               cvv_code?: string | null,
>               response_code?: string | null,
>               payment_advice_code?: string | null
>             }& any | null
>           }& any
>         )[] | null,
>         captures?: (
>           {
>             status?: string | null,
>             status_details?: {
>               reason?: string | null
>             }& any | null,
>             id?: string | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null,
>               breakdown?: {
>                 item_total?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 shipping?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 handling?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 tax_total?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 insurance?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 shipping_discount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 discount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null
>               } | null
>             }& any | null,
>             invoice_id?: string | null,
>             custom_id?: string | null,
>             network_transaction_reference?: {
>               id?: string | null,
>               date?: string | null,
>               network?: string & any | null,
>               acquirer_reference_number?: string | null
>             } | null,
>             seller_protection?: {
>               status?: string | null,
>               dispute_categories?: string[] | null
>             }& any | null,
>             final_capture?: boolean | null,
>             seller_receivable_breakdown?: {
>               gross_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               paypal_fee?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               paypal_fee_in_receivable_currency?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               net_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               receivable_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               exchange_rate?: {
>                 source_currency?: string & any | null,
>                 target_currency?: string & any | null,
>                 value?: string | null
>               }& any | null,
>               platform_fees?: (
>                 {
>                   amount?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   payee?: {
>                     email_address?: string & any | null,
>                     merchant_id?: string & any | null
>                   }& any | null
>                 }& any
>               )[] | null
>             }& any | null,
>             disbursement_mode?: string | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null,
>             processor_response?: {
>               avs_code?: string | null,
>               cvv_code?: string | null,
>               response_code?: string | null,
>               payment_advice_code?: string | null
>             }& any | null,
>             create_time?: string & any | null,
>             update_time?: string & any | null
>           }& any
>         )[] | null,
>         refunds?: (
>           {
>             status?: string | null,
>             status_details?: {
>               reason?: string | null
>             }& any | null,
>             id?: string | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             invoice_id?: string | null,
>             custom_id?: string | null,
>             acquirer_reference_number?: string | null,
>             note_to_payer?: string | null,
>             seller_payable_breakdown?: {
>               gross_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               paypal_fee?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               paypal_fee_in_receivable_currency?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               net_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               net_amount_in_receivable_currency?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               platform_fees?: (
>                 {
>                   amount?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   payee?: {
>                     email_address?: string & any | null,
>                     merchant_id?: string & any | null
>                   }& any | null
>                 }& any
>               )[] | null,
>               net_amount_breakdown?: (
>                 {
>                   payable_amount?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   converted_amount?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   exchange_rate?: {
>                     source_currency?: string & any | null,
>                     target_currency?: string & any | null,
>                     value?: string | null
>                   }& any | null
>                 }& any
>               )[] | null,
>               total_refunded_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null
>             } | null,
>             payer?: {
>               email_address?: string & any | null,
>               merchant_id?: string & any | null
>             }& any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null,
>             create_time?: string & any | null,
>             update_time?: string & any | null
>           }& any
>         )[] | null
>       }& any | null
>     }& any
>   )[] | null,
>   status?: string & any | null,
>   links?: (
>     {
>       href?: string | null,
>       rel?: string | null,
>       method?: string | null,
>       title?: string | null,
>       mediaType?: string | null,
>       encType?: string | null,
>       schema?: {
>         additionalItems?: {
>         } | null,
>         dependencies?: {
>         } | null,
>         items?: {
>         } | null,
>         definitions?: {
>         } | null,
>         patternProperties?: {
>         } | null,
>         properties?: {
>         } | null,
>         allOf?: {
>         }[] | null,
>         anyOf?: {
>         }[] | null,
>         oneOf?: {
>         }[] | null,
>         not?: {
>         } | null,
>         links?: {
>         }[] | null,
>         fragmentResolution?: string | null,
>         media?: {
>           type?: string | null,
>           binaryEncoding?: string | null
>         } | null,
>         pathStart?: string | null
>       }& any | null,
>       targetSchema?: {
>         additionalItems?: {
>         } | null,
>         dependencies?: {
>         } | null,
>         items?: {
>         } | null,
>         definitions?: {
>         } | null,
>         patternProperties?: {
>         } | null,
>         properties?: {
>         } | null,
>         allOf?: {
>         }[] | null,
>         anyOf?: {
>         }[] | null,
>         oneOf?: {
>         }[] | null,
>         not?: {
>         } | null,
>         links?: {
>         }[] | null,
>         fragmentResolution?: string | null,
>         media?: {
>           type?: string | null,
>           binaryEncoding?: string | null
>         } | null,
>         pathStart?: string | null
>       }& any | null
>     }& any
>   )[] | null
> }
> ```

***

### get

`orders.get`

Show order details

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.orders.get({ id: '5O190127TN364715T' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the order for which to show details. |
| `paypal_auth_assertion` | `string` | No | Header for an API client-provided JWT assertion that identifies the merchant. Establishing the consent to act-on-behalf of a merchant is a prerequisite for using this header. |
| `fields` | `string` | No | A comma-separated list of fields that should be returned for the order. Valid filter field is `payment_source`. |

**Output:** `object`

> [accordion] Output full type
>
> ```ts theme={null}
> (
>   {
>     create_time?: string & any | null,
>     update_time?: string & any | null
>   }& any
> )& {
>   id?: string | null,
>   payment_source?: {
>     card?: {
>       name?: string | null,
>       last_digits?: string | null,
>       brand?: string & any | null,
>       available_networks?: (string & any)[] | null,
>       type?: string & any | null,
>       authentication_result?: {
>         liability_shift?: string | null,
>         three_d_secure?: {
>           authentication_status?: string & any | null,
>           enrollment_status?: string & any | null
>         } | null
>       } | null,
>       attributes?: {
>         vault?: (
>           {
>             id?: string | null,
>             status?: string | null,
>             customer?: {
>               id?: string | null,
>               email_address?: string & any | null,
>               phone?: {
>                 phone_type?: string | null,
>                 phone_number?: {
>                   national_number?: string | null
>                 }& any | null
>               }& any | null,
>               name?: {
>                 prefix?: string | null,
>                 given_name?: string | null,
>                 surname?: string | null,
>                 middle_name?: string | null,
>                 suffix?: string | null,
>                 full_name?: string | null
>               }& any | null
>             }& any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null
>           }& any
>         )& {
>           customer?: {
>             id?: string | null,
>             email_address?: string & any | null,
>             phone?: {
>               phone_type?: string | null,
>               phone_number?: {
>                 national_number?: string | null
>               }& any | null
>             }& any | null,
>             name?: {
>               prefix?: string | null,
>               given_name?: string | null,
>               surname?: string | null,
>               middle_name?: string | null,
>               suffix?: string | null,
>               full_name?: string | null
>             }& any | null,
>             merchant_customer_id?: string | null
>           } | null
>         } | null
>       } | null,
>       from_request?: {
>         expiry?: string & any | null,
>         last_digits?: string | null
>       } | null,
>       expiry?: string & any | null,
>       bin_details?: {
>         bin?: string | null,
>         issuing_bank?: string | null,
>         bin_country_code?: string & any | null,
>         products?: string[] | null
>       }& any | null,
>       stored_credential?: {
>         payment_initiator?: string | null,
>         payment_type?: string | null,
>         usage?: string | null,
>         previous_network_transaction_reference?: {
>           id?: string | null,
>           date?: string | null,
>           network?: string & any | null,
>           acquirer_reference_number?: string | null
>         } | null
>       } | null
>     } | null,
>     paypal?: {
>       email_address?: string & any | null,
>       account_id?: string & any | null,
>       account_status?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         full_name?: string | null
>       }& any | null,
>       phone_type?: string | null,
>       phone_number?: {
>         national_number?: string | null
>       }& any | null,
>       birth_date?: string & any | null,
>       business_name?: string | null,
>       tax_info?: {
>         tax_id?: string | null,
>         tax_id_type?: string | null
>       }& any | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       }& any | null,
>       attributes?: {
>         vault?: (
>           {
>             id?: string | null,
>             status?: string | null,
>             customer?: {
>               id?: string | null,
>               email_address?: string & any | null,
>               phone?: {
>                 phone_type?: string | null,
>                 phone_number?: {
>                   national_number?: string | null
>                 }& any | null
>               }& any | null,
>               name?: {
>                 prefix?: string | null,
>                 given_name?: string | null,
>                 surname?: string | null,
>                 middle_name?: string | null,
>                 suffix?: string | null,
>                 full_name?: string | null
>               }& any | null
>             }& any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null
>           }& any
>         )& {
>           customer?: {
>             id?: string | null,
>             email_address?: string & any | null,
>             phone?: {
>               phone_type?: string | null,
>               phone_number?: {
>                 national_number?: string | null
>               }& any | null
>             }& any | null,
>             name?: {
>               prefix?: string | null,
>               given_name?: string | null,
>               surname?: string | null,
>               middle_name?: string | null,
>               suffix?: string | null,
>               full_name?: string | null
>             }& any | null,
>             merchant_customer_id?: string | null
>           } | null
>         } | null,
>         cobranded_cards?: (
>           {
>             labels?: string[] | null,
>             payee?: {
>               email_address?: string & any | null,
>               merchant_id?: string & any | null
>             }& any | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null
>           }& any
>         )[] | null
>       } | null,
>       stored_credential?: {
>         payment_initiator?: string | null,
>         charge_pattern?: string & any | null,
>         usage_pattern?: string | null,
>         usage?: string | null
>       } | null,
>       experience_status?: string | null
>     } | null,
>     bancontact?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null,
>       card_last_digits?: string | null
>     } | null,
>     blik?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       email?: string & any | null,
>       one_click?: {
>         consumer_reference?: string | null
>       }& any | null
>     } | null,
>     eps?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null
>     } | null,
>     giropay?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null
>     } | null,
>     ideal?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null
>     } | null,
>     mybank?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null
>     } | null,
>     p24?: {
>       name?: string & any | null,
>       email?: string & any | null,
>       country_code?: string & any | null,
>       payment_descriptor?: string | null,
>       method_id?: string | null,
>       method_description?: string | null
>     } | null,
>     sofort?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null
>     } | null,
>     trustly?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       email?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null
>     } | null,
>     apple_pay?: {
>       id?: string | null,
>       token?: string | null,
>       name?: string & any | null,
>       email_address?: string & any | null,
>       phone_number?: {
>         country_code?: string | null,
>         national_number?: string | null,
>         extension_number?: string | null
>       }& any | null,
>       card?: ((
>         {
>           name?: string | null,
>           last_digits?: string | null,
>           brand?: string & any | null,
>           available_networks?: (string & any)[] | null,
>           type?: string & any | null,
>           authentication_result?: {
>             liability_shift?: string | null,
>             three_d_secure?: {
>               authentication_status?: string & any | null,
>               enrollment_status?: string & any | null
>             } | null
>           } | null,
>           attributes?: {
>             vault?: (
>               {
>                 id?: string | null,
>                 status?: string | null,
>                 customer?: {
>                   id?: string | null,
>                   email_address?: string & any | null,
>                   phone?: {
>                     phone_type?: string | null,
>                     phone_number?: {
>                       national_number?: string | null
>                     }& any | null
>                   }& any | null,
>                   name?: {
>                     prefix?: string | null,
>                     given_name?: string | null,
>                     surname?: string | null,
>                     middle_name?: string | null,
>                     suffix?: string | null,
>                     full_name?: string | null
>                   }& any | null
>                 }& any | null,
>                 links?: (
>                   {
>                     href?: string | null,
>                     rel?: string | null,
>                     method?: string | null,
>                     title?: string | null,
>                     mediaType?: string | null,
>                     encType?: string | null,
>                     schema?: {
>                       additionalItems?: {
>                       } | null,
>                       dependencies?: {
>                       } | null,
>                       items?: {
>                       } | null,
>                       definitions?: {
>                       } | null,
>                       patternProperties?: {
>                       } | null,
>                       properties?: {
>                       } | null,
>                       allOf?: {
>                       }[] | null,
>                       anyOf?: {
>                       }[] | null,
>                       oneOf?: {
>                       }[] | null,
>                       not?: {
>                       } | null,
>                       links?: {
>                       }[] | null,
>                       fragmentResolution?: string | null,
>                       media?: {
>                         type?: string | null,
>                         binaryEncoding?: string | null
>                       } | null,
>                       pathStart?: string | null
>                     }& any | null,
>                     targetSchema?: {
>                       additionalItems?: {
>                       } | null,
>                       dependencies?: {
>                       } | null,
>                       items?: {
>                       } | null,
>                       definitions?: {
>                       } | null,
>                       patternProperties?: {
>                       } | null,
>                       properties?: {
>                       } | null,
>                       allOf?: {
>                       }[] | null,
>                       anyOf?: {
>                       }[] | null,
>                       oneOf?: {
>                       }[] | null,
>                       not?: {
>                       } | null,
>                       links?: {
>                       }[] | null,
>                       fragmentResolution?: string | null,
>                       media?: {
>                         type?: string | null,
>                         binaryEncoding?: string | null
>                       } | null,
>                       pathStart?: string | null
>                     }& any | null
>                   }& any
>                 )[] | null
>               }& any
>             )& {
>               customer?: {
>                 id?: string | null,
>                 email_address?: string & any | null,
>                 phone?: {
>                   phone_type?: string | null,
>                   phone_number?: {
>                     national_number?: string | null
>                   }& any | null
>                 }& any | null,
>                 name?: {
>                   prefix?: string | null,
>                   given_name?: string | null,
>                   surname?: string | null,
>                   middle_name?: string | null,
>                   suffix?: string | null,
>                   full_name?: string | null
>                 }& any | null,
>                 merchant_customer_id?: string | null
>               } | null
>             } | null
>           } | null,
>           from_request?: {
>             expiry?: string & any | null,
>             last_digits?: string | null
>           } | null,
>           expiry?: string & any | null,
>           bin_details?: {
>             bin?: string | null,
>             issuing_bank?: string | null,
>             bin_country_code?: string & any | null,
>             products?: string[] | null
>           }& any | null,
>           stored_credential?: {
>             payment_initiator?: string | null,
>             payment_type?: string | null,
>             usage?: string | null,
>             previous_network_transaction_reference?: {
>               id?: string | null,
>               date?: string | null,
>               network?: string & any | null,
>               acquirer_reference_number?: string | null
>             } | null
>           } | null
>         }& any
>       )& {
>         name?: string | null,
>         billing_address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           address_line_3?: string | null,
>           admin_area_4?: string | null,
>           admin_area_3?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null,
>           address_details?: {
>             street_number?: string | null,
>             street_name?: string | null,
>             street_type?: string | null,
>             delivery_service?: string | null,
>             building_name?: string | null,
>             sub_building?: string | null
>           } | null
>         }& any | null,
>         country_code?: string & any | null
>       })& any | null,
>       attributes?: {
>         vault?: {
>           id?: string | null,
>           status?: string | null,
>           customer?: {
>             id?: string | null,
>             email_address?: string & any | null,
>             phone?: {
>               phone_type?: string | null,
>               phone_number?: {
>                 national_number?: string | null
>               }& any | null
>             }& any | null,
>             name?: {
>               prefix?: string | null,
>               given_name?: string | null,
>               surname?: string | null,
>               middle_name?: string | null,
>               suffix?: string | null,
>               full_name?: string | null
>             }& any | null
>           }& any | null,
>           links?: (
>             {
>               href?: string | null,
>               rel?: string | null,
>               method?: string | null,
>               title?: string | null,
>               mediaType?: string | null,
>               encType?: string | null,
>               schema?: {
>                 additionalItems?: {
>                 } | null,
>                 dependencies?: {
>                 } | null,
>                 items?: {
>                 } | null,
>                 definitions?: {
>                 } | null,
>                 patternProperties?: {
>                 } | null,
>                 properties?: {
>                 } | null,
>                 allOf?: {
>                 }[] | null,
>                 anyOf?: {
>                 }[] | null,
>                 oneOf?: {
>                 }[] | null,
>                 not?: {
>                 } | null,
>                 links?: {
>                 }[] | null,
>                 fragmentResolution?: string | null,
>                 media?: {
>                   type?: string | null,
>                   binaryEncoding?: string | null
>                 } | null,
>                 pathStart?: string | null
>               }& any | null,
>               targetSchema?: {
>                 additionalItems?: {
>                 } | null,
>                 dependencies?: {
>                 } | null,
>                 items?: {
>                 } | null,
>                 definitions?: {
>                 } | null,
>                 patternProperties?: {
>                 } | null,
>                 properties?: {
>                 } | null,
>                 allOf?: {
>                 }[] | null,
>                 anyOf?: {
>                 }[] | null,
>                 oneOf?: {
>                 }[] | null,
>                 not?: {
>                 } | null,
>                 links?: {
>                 }[] | null,
>                 fragmentResolution?: string | null,
>                 media?: {
>                   type?: string | null,
>                   binaryEncoding?: string | null
>                 } | null,
>                 pathStart?: string | null
>               }& any | null
>             }& any
>           )[] | null
>         } | null
>       }& any | null,
>       stored_credential?: {
>         payment_initiator?: string | null,
>         payment_type?: string | null,
>         usage?: string | null,
>         previous_network_transaction_reference?: {
>           id?: string | null,
>           date?: string | null,
>           network?: string & any | null,
>           acquirer_reference_number?: string | null
>         } | null
>       } | null
>     } | null,
>     google_pay?: {
>       name?: string & any | null,
>       email_address?: string & any | null,
>       phone_number?: {
>         country_code?: string | null,
>         national_number?: string | null
>       }& any | null,
>       card?: {
>         name?: string | null,
>         last_digits?: string | null,
>         type?: string & any | null,
>         brand?: string & any | null,
>         billing_address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           address_line_3?: string | null,
>           admin_area_4?: string | null,
>           admin_area_3?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null,
>           address_details?: {
>             street_number?: string | null,
>             street_name?: string | null,
>             street_type?: string | null,
>             delivery_service?: string | null,
>             building_name?: string | null,
>             sub_building?: string | null
>           } | null
>         }& any | null,
>         authentication_result?: {
>           liability_shift?: string | null,
>           three_d_secure?: {
>             authentication_status?: string & any | null,
>             enrollment_status?: string & any | null
>           } | null
>         } | null
>       }& any | null
>     } | null,
>     venmo?: {
>       email_address?: string & any | null,
>       account_id?: string & any | null,
>       user_name?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         full_name?: string | null
>       }& any | null,
>       phone_number?: {
>         national_number?: string | null
>       }& any | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       }& any | null,
>       return_flow?: string | null,
>       attributes?: {
>         vault?: (
>           {
>             id?: string | null,
>             status?: string | null,
>             customer?: {
>               id?: string | null,
>               email_address?: string & any | null,
>               phone?: {
>                 phone_type?: string | null,
>                 phone_number?: {
>                   national_number?: string | null
>                 }& any | null
>               }& any | null,
>               name?: {
>                 prefix?: string | null,
>                 given_name?: string | null,
>                 surname?: string | null,
>                 middle_name?: string | null,
>                 suffix?: string | null,
>                 full_name?: string | null
>               }& any | null
>             }& any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null
>           }& any
>         )& {
>           customer?: {
>             id?: string | null,
>             email_address?: string & any | null,
>             phone?: {
>               phone_type?: string | null,
>               phone_number?: {
>                 national_number?: string | null
>               }& any | null
>             }& any | null,
>             name?: {
>               prefix?: string | null,
>               given_name?: string | null,
>               surname?: string | null,
>               middle_name?: string | null,
>               suffix?: string | null,
>               full_name?: string | null
>             }& any | null
>           } | null
>         } | null
>       } | null
>     } | null,
>     crypto?: {
>       country_code?: string & any | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null
>       }& any | null,
>       experience_context?: {
>         brand_name?: string | null,
>         locale?: string & any | null,
>         shipping_preference?: string | null,
>         return_url?: string & any | null,
>         cancel_url?: string & any | null
>       }& any | null
>     } | null
>   } | null,
>   intent?: string | null,
>   payer?: {
>     email_address?: string & any | null,
>     payer_id?: string & any | null,
>     name?: {
>       prefix?: string | null,
>       given_name?: string | null,
>       surname?: string | null,
>       middle_name?: string | null,
>       suffix?: string | null,
>       full_name?: string | null
>     }& any | null,
>     phone?: {
>       phone_type?: string | null,
>       phone_number?: {
>         national_number?: string | null
>       }& any | null
>     }& any | null,
>     birth_date?: string & any | null,
>     tax_info?: {
>       tax_id?: string | null,
>       tax_id_type?: string | null
>     }& any | null,
>     address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       address_line_3?: string | null,
>       admin_area_4?: string | null,
>       admin_area_3?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null,
>       address_details?: {
>         street_number?: string | null,
>         street_name?: string | null,
>         street_type?: string | null,
>         delivery_service?: string | null,
>         building_name?: string | null,
>         sub_building?: string | null
>       } | null
>     }& any | null
>   }& any | null,
>   purchase_units?: (
>     {
>       reference_id?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null,
>         breakdown?: {
>           item_total?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           shipping?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           handling?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           tax_total?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           insurance?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           shipping_discount?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           discount?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null
>         } | null
>       } | null,
>       payee?: {
>         email_address?: string & any | null,
>         merchant_id?: string & any | null
>       }& any | null,
>       payment_instruction?: {
>         platform_fees?: (
>           {
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             payee?: {
>               email_address?: string & any | null,
>               merchant_id?: string & any | null
>             }& any | null
>           }& any
>         )[] | null,
>         disbursement_mode?: string & any | null,
>         payee_pricing_tier_id?: string | null,
>         payee_receivable_fx_rate_id?: string | null
>       } | null,
>       description?: string | null,
>       custom_id?: string | null,
>       invoice_id?: string | null,
>       id?: string | null,
>       soft_descriptor?: string | null,
>       items?: (
>         {
>           name?: string | null,
>           unit_amount?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           tax?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           quantity?: string | null,
>           description?: string | null,
>           sku?: string | null,
>           url?: string | null,
>           category?: string | null,
>           image_url?: string | null,
>           upc?: {
>             type?: string | null,
>             code?: string | null
>           }& any | null,
>           billing_plan?: {
>             billing_cycles?: {
>               tenure_type?: string | null,
>               pricing_scheme?: {
>                 price?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 pricing_model?: string | null,
>                 reload_threshold_amount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null
>               }& any | null,
>               total_cycles?: number | null,
>               sequence?: number | null,
>               start_date?: string & any | null
>             }[] | null,
>             setup_fee?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             name?: string | null
>           } | null
>         }& any
>       )[] | null,
>       shipping?: {
>         name?: {
>           prefix?: string | null,
>           given_name?: string | null,
>           surname?: string | null,
>           middle_name?: string | null,
>           suffix?: string | null,
>           full_name?: string | null
>         }& any | null,
>         email_address?: string & any | null,
>         phone_number?: (
>           {
>             country_code?: string | null,
>             national_number?: string | null,
>             extension_number?: string | null
>           }& any
>         )& (
>           {
>             country_code?: string | null,
>             national_number?: string | null
>           }& any
>         ) | null,
>         type?: string | null,
>         options?: (
>           {
>             id?: string | null,
>             label?: string | null,
>             type?: string & any | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             selected?: boolean | null
>           }& any
>         )[] | null,
>         address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           address_line_3?: string | null,
>           admin_area_4?: string | null,
>           admin_area_3?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null,
>           address_details?: {
>             street_number?: string | null,
>             street_name?: string | null,
>             street_type?: string | null,
>             delivery_service?: string | null,
>             building_name?: string | null,
>             sub_building?: string | null
>           } | null
>         }& any | null,
>         trackers?: {
>           id?: string | null,
>           status?: string | null,
>           items?: (
>             {
>               name?: string | null,
>               quantity?: string | null,
>               sku?: string | null,
>               url?: string | null,
>               image_url?: string | null,
>               upc?: {
>                 type?: string | null,
>                 code?: string | null
>               }& any | null
>             }& any
>           )[] | null,
>           links?: (
>             {
>               href?: string | null,
>               rel?: string | null,
>               method?: string | null,
>               title?: string | null,
>               mediaType?: string | null,
>               encType?: string | null,
>               schema?: {
>                 additionalItems?: {
>                 } | null,
>                 dependencies?: {
>                 } | null,
>                 items?: {
>                 } | null,
>                 definitions?: {
>                 } | null,
>                 patternProperties?: {
>                 } | null,
>                 properties?: {
>                 } | null,
>                 allOf?: {
>                 }[] | null,
>                 anyOf?: {
>                 }[] | null,
>                 oneOf?: {
>                 }[] | null,
>                 not?: {
>                 } | null,
>                 links?: {
>                 }[] | null,
>                 fragmentResolution?: string | null,
>                 media?: {
>                   type?: string | null,
>                   binaryEncoding?: string | null
>                 } | null,
>                 pathStart?: string | null
>               }& any | null,
>               targetSchema?: {
>                 additionalItems?: {
>                 } | null,
>                 dependencies?: {
>                 } | null,
>                 items?: {
>                 } | null,
>                 definitions?: {
>                 } | null,
>                 patternProperties?: {
>                 } | null,
>                 properties?: {
>                 } | null,
>                 allOf?: {
>                 }[] | null,
>                 anyOf?: {
>                 }[] | null,
>                 oneOf?: {
>                 }[] | null,
>                 not?: {
>                 } | null,
>                 links?: {
>                 }[] | null,
>                 fragmentResolution?: string | null,
>                 media?: {
>                   type?: string | null,
>                   binaryEncoding?: string | null
>                 } | null,
>                 pathStart?: string | null
>               }& any | null
>             }& any
>           )[] | null,
>           create_time?: string & any | null,
>           update_time?: string & any | null
>         }[] | null
>       }& any | null,
>       supplementary_data?: {
>         card?: {
>           level_2?: {
>             invoice_id?: string | null,
>             tax_total?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null
>           } | null,
>           level_3?: {
>             shipping_amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             duty_amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             discount_amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             shipping_address?: {
>               address_line_1?: string | null,
>               address_line_2?: string | null,
>               address_line_3?: string | null,
>               admin_area_4?: string | null,
>               admin_area_3?: string | null,
>               admin_area_2?: string | null,
>               admin_area_1?: string | null,
>               postal_code?: string | null,
>               country_code?: string | null,
>               address_details?: {
>                 street_number?: string | null,
>                 street_name?: string | null,
>                 street_type?: string | null,
>                 delivery_service?: string | null,
>                 building_name?: string | null,
>                 sub_building?: string | null
>               } | null
>             }& any | null,
>             ships_from_postal_code?: string | null,
>             line_items?: (
>               {
>                 name?: string | null,
>                 quantity?: string | null,
>                 description?: string | null,
>                 sku?: string | null,
>                 url?: string | null,
>                 image_url?: string | null,
>                 upc?: {
>                   type?: string | null,
>                   code?: string | null
>                 }& any | null,
>                 billing_plan?: {
>                   billing_cycles?: {
>                     tenure_type?: string | null,
>                     pricing_scheme?: {
>                       price?: {
>                         currency_code?: string | null,
>                         value?: string | null
>                       }& any | null,
>                       pricing_model?: string | null,
>                       reload_threshold_amount?: {
>                         currency_code?: string | null,
>                         value?: string | null
>                       }& any | null
>                     }& any | null,
>                     total_cycles?: number | null,
>                     sequence?: number | null,
>                     start_date?: string & any | null
>                   }[] | null,
>                   setup_fee?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   name?: string | null
>                 } | null,
>                 unit_amount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 tax?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 commodity_code?: string | null,
>                 discount_amount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 total_amount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 unit_of_measure?: string | null
>               }& any
>             )[] | null
>           } | null
>         }& any | null,
>         risk?: {
>           customer?: {
>             ip_address?: string & any | null
>           } | null
>         }& any | null
>       }& any | null,
>       payments?: {
>         authorizations?: (
>           {
>             status?: string | null,
>             status_details?: {
>               reason?: string | null
>             }& any | null,
>             id?: string | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null,
>               breakdown?: {
>                 item_total?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 shipping?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 handling?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 tax_total?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 insurance?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 shipping_discount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 discount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null
>               } | null
>             }& any | null,
>             invoice_id?: string | null,
>             custom_id?: string | null,
>             network_transaction_reference?: {
>               id?: string | null,
>               date?: string | null,
>               network?: string & any | null,
>               acquirer_reference_number?: string | null
>             } | null,
>             seller_protection?: {
>               status?: string | null,
>               dispute_categories?: string[] | null
>             }& any | null,
>             expiration_time?: string & any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null,
>             create_time?: string & any | null,
>             update_time?: string & any | null,
>             processor_response?: {
>               avs_code?: string | null,
>               cvv_code?: string | null,
>               response_code?: string | null,
>               payment_advice_code?: string | null
>             }& any | null
>           }& any
>         )[] | null,
>         captures?: (
>           {
>             status?: string | null,
>             status_details?: {
>               reason?: string | null
>             }& any | null,
>             id?: string | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null,
>               breakdown?: {
>                 item_total?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 shipping?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 handling?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 tax_total?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 insurance?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 shipping_discount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 discount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null
>               } | null
>             }& any | null,
>             invoice_id?: string | null,
>             custom_id?: string | null,
>             network_transaction_reference?: {
>               id?: string | null,
>               date?: string | null,
>               network?: string & any | null,
>               acquirer_reference_number?: string | null
>             } | null,
>             seller_protection?: {
>               status?: string | null,
>               dispute_categories?: string[] | null
>             }& any | null,
>             final_capture?: boolean | null,
>             seller_receivable_breakdown?: {
>               gross_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               paypal_fee?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               paypal_fee_in_receivable_currency?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               net_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               receivable_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               exchange_rate?: {
>                 source_currency?: string & any | null,
>                 target_currency?: string & any | null,
>                 value?: string | null
>               }& any | null,
>               platform_fees?: (
>                 {
>                   amount?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   payee?: {
>                     email_address?: string & any | null,
>                     merchant_id?: string & any | null
>                   }& any | null
>                 }& any
>               )[] | null
>             }& any | null,
>             disbursement_mode?: string | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null,
>             processor_response?: {
>               avs_code?: string | null,
>               cvv_code?: string | null,
>               response_code?: string | null,
>               payment_advice_code?: string | null
>             }& any | null,
>             create_time?: string & any | null,
>             update_time?: string & any | null
>           }& any
>         )[] | null,
>         refunds?: (
>           {
>             status?: string | null,
>             status_details?: {
>               reason?: string | null
>             }& any | null,
>             id?: string | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             invoice_id?: string | null,
>             custom_id?: string | null,
>             acquirer_reference_number?: string | null,
>             note_to_payer?: string | null,
>             seller_payable_breakdown?: {
>               gross_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               paypal_fee?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               paypal_fee_in_receivable_currency?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               net_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               net_amount_in_receivable_currency?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               platform_fees?: (
>                 {
>                   amount?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   payee?: {
>                     email_address?: string & any | null,
>                     merchant_id?: string & any | null
>                   }& any | null
>                 }& any
>               )[] | null,
>               net_amount_breakdown?: (
>                 {
>                   payable_amount?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   converted_amount?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   exchange_rate?: {
>                     source_currency?: string & any | null,
>                     target_currency?: string & any | null,
>                     value?: string | null
>                   }& any | null
>                 }& any
>               )[] | null,
>               total_refunded_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null
>             } | null,
>             payer?: {
>               email_address?: string & any | null,
>               merchant_id?: string & any | null
>             }& any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null,
>             create_time?: string & any | null,
>             update_time?: string & any | null
>           }& any
>         )[] | null
>       }& any | null
>     }& any
>   )[] | null,
>   status?: string & any | null,
>   links?: (
>     {
>       href?: string | null,
>       rel?: string | null,
>       method?: string | null,
>       title?: string | null,
>       mediaType?: string | null,
>       encType?: string | null,
>       schema?: {
>         additionalItems?: {
>         } | null,
>         dependencies?: {
>         } | null,
>         items?: {
>         } | null,
>         definitions?: {
>         } | null,
>         patternProperties?: {
>         } | null,
>         properties?: {
>         } | null,
>         allOf?: {
>         }[] | null,
>         anyOf?: {
>         }[] | null,
>         oneOf?: {
>         }[] | null,
>         not?: {
>         } | null,
>         links?: {
>         }[] | null,
>         fragmentResolution?: string | null,
>         media?: {
>           type?: string | null,
>           binaryEncoding?: string | null
>         } | null,
>         pathStart?: string | null
>       }& any | null,
>       targetSchema?: {
>         additionalItems?: {
>         } | null,
>         dependencies?: {
>         } | null,
>         items?: {
>         } | null,
>         definitions?: {
>         } | null,
>         patternProperties?: {
>         } | null,
>         properties?: {
>         } | null,
>         allOf?: {
>         }[] | null,
>         anyOf?: {
>         }[] | null,
>         oneOf?: {
>         }[] | null,
>         not?: {
>         } | null,
>         links?: {
>         }[] | null,
>         fragmentResolution?: string | null,
>         media?: {
>           type?: string | null,
>           binaryEncoding?: string | null
>         } | null,
>         pathStart?: string | null
>       }& any | null
>     }& any
>   )[] | null
> }
> ```

***

### trackers.create

`orders.trackers.create`

Add tracking information for an Order

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.orders.trackers.create({
	id: '5O190127TN364715T',
	tracking_number: 'example',
	carrier: 'DPD_RU',
	capture_id: '2GG279541U471931P',
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the order that the tracking information is associated with. |
| `paypal_auth_assertion` | `string` | No | Header for an API client-provided JWT assertion that identifies the merchant. Establishing the consent to act-on-behalf of a merchant is a prerequisite for using this header. |
| `tracking_number` | `string` | Yes | The tracking number for the shipment. This property supports Unicode. |
| `carrier` | `DPD_RU \| BG_BULGARIAN_POST \| KR_KOREA_POST \| ZA_COURIERIT \| FR_EXAPAQ \| ARE_EMIRATES_POST \| GAC \| GEIS \| SF_EX \| PAGO \| MYHERMES \| DIAMOND_EUROGISTICS \| CORPORATECOURIERS_WEBHOOK \| BOND \| OMNIPARCEL \| SK_POSTA \| PUROLATOR \| FETCHR_WEBHOOK \| THEDELIVERYGROUP \| CELLO_SQUARE \| TARRIVE \| COLLIVERY \| MAINFREIGHT \| IND_FIRSTFLIGHT \| ACSWORLDWIDE \| AMSTAN \| OKAYPARCEL \| ENVIALIA_REFERENCE \| SEUR_ES \| CONTINENTAL \| FDSEXPRESS \| AMAZON_FBA_SWISHIP \| WYNGS \| DHL_ACTIVE_TRACING \| ZYLLEM \| RUSTON \| XPOST \| CORREOS_ES \| DHL_FR \| PAN_ASIA \| BRT_IT \| SRE_KOREA \| SPEEDEE \| TNT_UK \| VENIPAK \| SHREENANDANCOURIER \| CROSHOT \| NIPOST_NG \| EPST_GLBL \| NEWGISTICS \| POST_SLOVENIA \| JERSEY_POST \| BOMBINOEXP \| WMG \| XQ_EXPRESS \| FURDECO \| LHT_EXPRESS \| SOUTH_AFRICAN_POST_OFFICE \| SPOTON \| DIMERCO \| CYPRUS_POST_CYP \| ABCUSTOM \| IND_DELIVREE \| CN_BESTEXPRESS \| DX_SFTP \| PICKUPP_MYS \| FMX \| HELLMANN \| SHIP_IT_ASIA \| KERRY_ECOMMERCE \| FRETERAPIDO \| PITNEY_BOWES \| XPRESSEN_DK \| SEUR_SP_API \| DELIVERYONTIME \| JINSUNG \| TRANS_KARGO \| SWISHIP_DE \| IVOY_WEBHOOK \| AIRMEE_WEBHOOK \| DHL_BENELUX \| FIRSTMILE \| FASTWAY_IR \| HH_EXP \| MYS_MYPOST_ONLINE \| TNT_NL \| TIPSA \| TAQBIN_MY \| KGMHUB \| INTEXPRESS \| OVERSE_EXP \| ONECLICK \| ROADRUNNER_FREIGHT \| GLS_CROTIA \| MRW_FTP \| BLUEX \| DYLT \| DPD_IR \| SIN_GLBL \| TUFFNELLS_REFERENCE \| CJPACKET \| MILKMAN \| ASIGNA \| ONEWORLDEXPRESS \| ROYAL_MAIL \| VIA_EXPRESS \| TIGFREIGHT \| ZTO_EXPRESS \| TWO_GO \| IML \| INTEL_VALLEY \| EFS \| UK_UK_MAIL \| RAM \| ALLIEDEXPRESS \| APC_OVERNIGHT \| SHIPPIT \| TFM \| M_XPRESS \| HDB_BOX \| CLEVY_LINKS \| IBEONE \| FIEGE_NL \| KWE_GLOBAL \| CTC_EXPRESS \| AMAZON \| MORE_LINK \| JX \| EASY_MAIL \| ADUIEPYLE \| GB_PANTHER \| EXPRESSSALE \| SG_DETRACK \| TRUNKRS_WEBHOOK \| MATDESPATCH \| DICOM \| MBW \| KHM_CAMBODIA_POST \| SINOTRANS \| BRT_IT_PARCELID \| DHL_SUPPLY_CHAIN \| DHL_PL \| TOPYOU \| PALEXPRESS \| DHL_SG \| CN_WEDO \| FULFILLME \| DPD_DELISTRACK \| UPS_REFERENCE \| CARIBOU \| LOCUS_WEBHOOK \| DSV \| P2P_TRC \| DIRECTPARCELS \| NOVA_POSHTA_INT \| FEDEX_POLAND \| CN_JCEX \| FAR_INTERNATIONAL \| IDEXPRESS \| GANGBAO \| NEWAY \| POSTNL_INT_3_S \| RPX_ID \| DESIGNERTRANSPORT_WEBHOOK \| GLS_SLOVEN \| PARCELLED_IN \| GSI_EXPRESS \| CON_WAY \| BROUWER_TRANSPORT \| CPEX \| ISRAEL_POST \| DTDC_IN \| PTT_POST \| XDE_WEBHOOK \| TOLOS \| GIAO_HANG \| GEODIS_ESPACE \| MAGYAR_HU \| DOORDASH_WEBHOOK \| TIKI_ID \| CJ_HK_INTERNATIONAL \| STAR_TRACK_EXPRESS \| HELTHJEM \| SFB2C \| FREIGHTQUOTE \| LANDMARK_GLOBAL_REFERENCE \| PARCEL2GO \| DELNEXT \| RCL \| CGS_EXPRESS \| HK_POST \| SAP_EXPRESS \| PARCELPOST_SG \| HERMES \| IND_SAFEEXPRESS \| TOPHATTEREXPRESS \| MGLOBAL \| AVERITT \| LEADER \| _2EBOX \| SG_SPEEDPOST \| DBSCHENKER_SE \| ISR_POST_DOMESTIC \| BESTWAYPARCEL \| ASENDIA_DE \| NIGHTLINE_UK \| TAQBIN_SG \| TCK_EXPRESS \| ENDEAVOUR_DELIVERY \| NANJINGWOYUAN \| HEPPNER_FR \| EMPS_CN \| FONSEN \| PICKRR \| APC_OVERNIGHT_CONNUM \| STAR_TRACK_NEXT_FLIGHT \| DAJIN \| UPS_FREIGHT \| POSTA_PLUS \| CEVA \| ANSERX \| JS_EXPRESS \| PADTF \| UPS_MAIL_INNOVATIONS \| SYPOST \| AMAZON_SHIP_MCF \| YUSEN \| BRING \| SDA_IT \| GBA \| NEWEGGEXPRESS \| SPEEDCOURIERS_GR \| FORRUN \| PICKUP \| ECMS \| INTELIPOST \| FLASHEXPRESS \| CN_STO \| SEKO_SFTP \| HOME_DELIVERY_SOLUTIONS \| DPD_HGRY \| KERRYTTC_VN \| JOYING_BOX \| TOTAL_EXPRESS \| ZJS_EXPRESS \| STARKEN \| DEMANDSHIP \| CN_DPEX \| AUPOST_CN \| LOGISTERS \| GOGLOBALPOST \| GLS_CZ \| PAACK_WEBHOOK \| GRAB_WEBHOOK \| PARCELPOINT \| ICUMULUS \| DAIGLOBALTRACK \| GLOBAL_IPARCEL \| YURTICI_KARGO \| CN_PAYPAL_PACKAGE \| PARCEL_2_POST \| GLS_IT \| PIL_LOGISTICS \| HEPPNER \| GENERAL_OVERNIGHT \| HAPPY2POINT \| CHITCHATS \| SMOOTH \| CLE_LOGISTICS \| FIEGE \| MX_CARGO \| ZIINGFINALMILE \| DAYTON_FREIGHT \| TCS \| AEX \| HERMES_DE \| ROUTIFIC_WEBHOOK \| GLOBAVEND \| CJ_LOGISTICS \| PALLET_NETWORK \| RAF_PH \| UK_XDP \| PAPER_EXPRESS \| LA_POSTE_SUIVI \| PAQUETEXPRESS \| LIEFERY \| STRECK_TRANSPORT \| PONY_EXPRESS \| ALWAYS_EXPRESS \| GBS_BROKER \| CITYLINK_MY \| ALLJOY \| YODEL \| YODEL_DIR \| STONE3PL \| PARCELPAL_WEBHOOK \| DHL_ECOMERCE_ASA \| SIMPLYPOST \| KY_EXPRESS \| SHENZHEN \| US_LASERSHIP \| UC_EXPRE \| DIDADI \| CJ_KR \| DBSCHENKER_B2B \| MXE \| CAE_DELIVERS \| PFCEXPRESS \| WHISTL \| WEPOST \| DHL_PARCEL_ES \| DDEXPRESS \| ARAMEX_AU \| BNEED \| HK_TGX \| LATVIJAS_PASTS \| VIAEUROPE \| CORREO_UY \| CHRONOPOST_FR \| J_NET \| _6LS \| BLR_BELPOST \| BIRDSYSTEM \| DOBROPOST \| WAHANA_ID \| WEASHIP \| SONICTL \| KWT \| AFLLOG_FTP \| SKYNET_WORLDWIDE \| NOVA_POSHTA \| SEINO \| SZENDEX \| BPOST_INT \| DBSCHENKER_SV \| AO_DEUTSCHLAND \| EU_FLEET_SOLUTIONS \| PCFCORP \| LINKBRIDGE \| PRIMAMULTICIPTA \| COUREX \| ZAJIL_EXPRESS \| COLLECTCO \| JTEXPRESS \| FEDEX_UK \| USHIP \| PIXSELL \| SHIPTOR \| CDEK \| VNM_VIETTELPOST \| CJ_CENTURY \| GSO \| VIWO \| SKYBOX \| KERRYTJ \| NTLOGISTICS_VN \| SDH_SCM \| ZINC \| DPE_SOUTH_AFRC \| CESKA_CZ \| ACS_GR \| DEALERSEND \| JOCOM \| CSE \| TFORCE_FINALMILE \| SHIP_GATE \| SHIPTER \| NATIONAL_SAMEDAY \| YUNEXPRESS \| CAINIAO \| DMS_MATRIX \| DIRECTLOG \| ASENDIA_US \| _3JMSLOGISTICS \| LICCARDI_EXPRESS \| SKY_POSTAL \| CNWANGTONG \| POSTNORD_LOGISTICS_DK \| LOGISTIKA \| CELERITAS \| PRESSIODE \| SHREE_MARUTI \| LOGISTICSWORLDWIDE_HK \| EFEX \| LOTTE \| LONESTAR \| APRISAEXPRESS \| BEL_RS \| OSM_WORLDWIDE \| WESTGATE_GL \| FASTRACK \| DTD_EXPR \| ALFATREX \| PROMEDDELIVERY \| THABIT_LOGISTICS \| HCT_LOGISTICS \| CARRY_FLAP \| US_OLD_DOMINION \| ANICAM_BOX \| WANBEXPRESS \| AN_POST \| DPD_LOCAL \| STALLIONEXPRESS \| RAIDEREX \| SHOPFANS \| KYUNGDONG_PARCEL \| CHAMPION_LOGISTICS \| PICKUPP_SGP \| MORNING_EXPRESS \| NACEX \| THENILE_WEBHOOK \| HOLISOL \| LBCEXPRESS_FTP \| KURASI \| USF_REDDAWAY \| APG \| CN_BOXC \| ECOSCOOTING \| MAINWAY \| PAPERFLY \| HOUNDEXPRESS \| BOX_BERRY \| EP_BOX \| PLUS_LOG_UK \| FULFILLA \| ASE \| MAIL_PLUS \| XPO_LOGISTICS \| WNDIRECT \| CLOUDWISH_ASIA \| ZELERIS \| GIO_EXPRESS \| OCS_WORLDWIDE \| ARK_LOGISTICS \| AQUILINE \| PILOT_FREIGHT \| QWINTRY \| DANSKE_FRAGT \| CARRIERS \| AIR_CANADA_GLOBAL \| PRESIDENT_TRANS \| STEPFORWARDFS \| SKYNET_UK \| PITTOHIO \| CORREOS_EXPRESS \| RL_US \| DESTINY \| UK_YODEL \| COMET_TECH \| DHL_PARCEL_RU \| TNT_REFR \| SHREE_ANJANI_COURIER \| MIKROPAKKET_BE \| ETS_EXPRESS \| COLIS_PRIVE \| CN_YUNDA \| AAA_COOPER \| ROCKET_PARCEL \| _360LION \| PANDU \| PROFESSIONAL_COURIERS \| FLYTEXPRESS \| LOGISTICSWORLDWIDE_MY \| CORREOS_DE_ESPANA \| IMX \| FOUR_PX_EXPRESS \| XPRESSBEES \| PICKUPP_VNM \| STARTRACK_EXPRESS \| FR_COLISSIMO \| NACEX_SPAIN_REFERENCE \| DHL_SUPPLY_CHAIN_AU \| ESHIPPING \| SHREETIRUPATI \| HX_EXPRESS \| INDOPAKET \| CN_17POST \| K1_EXPRESS \| CJ_GLS \| MYS_GDEX \| NATIONEX \| ANJUN \| FARGOOD \| SMG_EXPRESS \| RZYEXPRESS \| SEFL \| TNT_CLICK_IT \| HDB \| HIPSHIPPER \| RPXLOGISTICS \| KUEHNE \| IT_NEXIVE \| PTS \| SWISS_POST_FTP \| FASTRK_SERV \| _4_72 \| US_YRC \| POSTNL_INTL_3S \| ELIAN_POST \| CUBYN \| SAU_SAUDI_POST \| ABXEXPRESS_MY \| HUAHAN_EXPRESS \| ZES_EXPRESS \| ZEPTO_EXPRESS \| SKYNET_ZA \| ZEEK_2_DOOR \| BLINKLASTMILE \| POSTA_UKR \| CHROBINSON \| CN_POST56 \| COURANT_PLUS \| SCUDEX_EXPRESS \| SHIPENTEGRA \| B_TWO_C_EUROPE \| COPE \| IND_GATI \| CN_WISHPOST \| NACEX_ES \| TAQBIN_HK \| GLOBALTRANZ \| HKD \| BJSHOMEDELIVERY \| OMNIVA \| SUTTON \| PANTHER_REFERENCE \| SFCSERVICE \| LTL \| PARKNPARCEL \| SPRING_GDS \| ECEXPRESS \| INTERPARCEL_AU \| AGILITY \| XL_EXPRESS \| ADERONLINE \| DIRECTCOURIERS \| PLANZER \| SENDING \| NINJAVAN_WB \| NATIONWIDE_MY \| SENDIT \| GB_ARROW \| IND_GOJAVAS \| KPOST \| DHL_FREIGHT \| BLUECARE \| JINDOUYUN \| TRACKON \| GB_TUFFNELLS \| TRUMPCARD \| ETOTAL \| SFPLUS_WEBHOOK \| SEKOLOGISTICS \| HERMES_2MANN_HANDLING \| DPD_LOCAL_REF \| UDS \| ZA_SPECIALISED_FREIGHT \| THA_KERRY \| PRT_INT_SEUR \| BRA_CORREIOS \| NZ_NZ_POST \| CN_EQUICK \| MYS_EMS \| GB_NORSK \| ESP_MRW \| ESP_PACKLINK \| KANGAROO_MY \| RPX \| XDP_UK_REFERENCE \| NINJAVAN_MY \| ADICIONAL \| ROADBULL \| YAKIT \| MAILAMERICAS \| MIKROPAKKET \| DYNALOGIC \| DHL_ES \| DHL_PARCEL_NL \| DHL_GLOBAL_MAIL_ASIA \| DAWN_WING \| GENIKI_GR \| HERMESWORLD_UK \| ALPHAFAST \| BUYLOGIC \| EKART \| MEX_SENDA \| SFC_LOGISTICS \| POST_SERBIA \| IND_DELHIVERY \| DE_DPD_DELISTRACK \| RPD2MAN \| CN_SF_EXPRESS \| YANWEN \| MYS_SKYNET \| CORREOS_DE_MEXICO \| CBL_LOGISTICA \| MEX_ESTAFETA \| AU_AUSTRIAN_POST \| RINCOS \| NLD_DHL \| RUSSIAN_POST \| COURIERS_PLEASE \| POSTNORD_LOGISTICS \| FEDEX \| DPE_EXPRESS \| DPD \| ADSONE \| IDN_JNE \| THECOURIERGUY \| CNEXPS \| PRT_CHRONOPOST \| LANDMARK_GLOBAL \| IT_DHL_ECOMMERCE \| ESP_NACEX \| PRT_CTT \| BE_KIALA \| ASENDIA_UK \| GLOBAL_TNT \| POSTUR_IS \| EPARCEL_KR \| INPOST_PACZKOMATY \| IT_POSTE_ITALIA \| BE_BPOST \| PL_POCZTA_POLSKA \| MYS_MYS_POST \| SG_SG_POST \| THA_THAILAND_POST \| LEXSHIP \| FASTWAY_NZ \| DHL_AU \| COSTMETICSNOW \| PFLOGISTICS \| LOOMIS_EXPRESS \| GLS_ITALY \| LINE \| GEL_EXPRESS \| HUODULL \| NINJAVAN_SG \| JANIO \| AO_COURIER \| BRT_IT_SENDER_REF \| SAILPOST \| LALAMOVE \| NEWZEALAND_COURIERS \| ETOMARS \| VIRTRANSPORT \| WIZMO \| PALLETWAYS \| I_DIKA \| CFL_LOGISTICS \| GEMWORLDWIDE \| GLOBAL_EXPRESS \| LOGISTYX_TRANSGROUP \| WESTBANK_COURIER \| ARCO_SPEDIZIONI \| YDH_EXPRESS \| PARCELINKLOGISTICS \| CNDEXPRESS \| NOX_NIGHT_TIME_EXPRESS \| AERONET \| LTIANEXP \| INTEGRA2_FTP \| PARCELONE \| NOX_NACHTEXPRESS \| CN_CHINA_POST_EMS \| CHUKOU1 \| GLS_SLOV \| ORANGE_DS \| JOOM_LOGIS \| AUS_STARTRACK \| DHL \| GB_APC \| BONDSCOURIERS \| JPN_JAPAN_POST \| USPS \| WINIT \| ARG_OCA \| TW_TAIWAN_POST \| DMM_NETWORK \| TNT \| BH_POSTA \| SWE_POSTNORD \| CA_CANADA_POST \| WISELOADS \| ASENDIA_HK \| NLD_GLS \| MEX_REDPACK \| JET_SHIP \| DE_DHL_EXPRESS \| NINJAVAN_THAI \| RABEN_GROUP \| ESP_ASM \| HRV_HRVATSKA \| GLOBAL_ESTES \| LTU_LIETUVOS \| BEL_DHL \| AU_AU_POST \| SPEEDEXCOURIER \| FR_COLIS \| ARAMEX \| DPEX \| MYS_AIRPAK \| CUCKOOEXPRESS \| DPD_POLAND \| NLD_POSTNL \| NIM_EXPRESS \| QUANTIUM \| SENDLE \| ESP_REDUR \| MATKAHUOLTO \| CPACKET \| POSTI \| HUNTER_EXPRESS \| CHOIR_EXP \| LEGION_EXPRESS \| AUSTRIAN_POST_EXPRESS \| GRUPO \| POSTA_RO \| INTERPARCEL_UK \| GLOBAL_ABF \| POSTEN_NORGE \| XPERT_DELIVERY \| DHL_REFR \| DHL_HK \| SKYNET_UAE \| GOJEK \| YODEL_INTNL \| JANCO \| YTO \| WISE_EXPRESS \| JTEXPRESS_VN \| FEDEX_INTL_MLSERV \| VAMOX \| AMS_GRP \| DHL_JP \| HRPARCEL \| GESWL \| BLUESTAR \| CDEK_TR \| DESCARTES \| DELTEC_UK \| DTDC_EXPRESS \| TOURLINE \| BH_WORLDWIDE \| OCS \| YINGNUO_LOGISTICS \| UPS \| TOLL \| PRT_SEUR \| DTDC_AU \| THA_DYNAMIC_LOGISTICS \| UBI_LOGISTICS \| FEDEX_CROSSBORDER \| A1POST \| TAZMANIAN_FREIGHT \| CJ_INT_MY \| SAIA_FREIGHT \| SG_QXPRESS \| NHANS_SOLUTIONS \| DPD_FR \| COORDINADORA \| ANDREANI \| DOORA \| INTERPARCEL_NZ \| PHL_JAMEXPRESS \| BEL_BELGIUM_POST \| US_APC \| IDN_POS \| FR_MONDIAL \| DE_DHL \| HK_RPX \| DHL_PIECEID \| VNPOST_EMS \| RRDONNELLEY \| DPD_DE \| DELCART_IN \| IMEXGLOBALSOLUTIONS \| ACOMMERCE \| EURODIS \| CANPAR \| GLS \| IND_ECOM \| ESP_ENVIALIA \| DHL_UK \| SMSA_EXPRESS \| TNT_FR \| DEX_I \| BUDBEE_WEBHOOK \| COPA_COURIER \| VNM_VIETNAM_POST \| DPD_HK \| TOLL_NZ \| ECHO \| FEDEX_FR \| BORDEREXPRESS \| MAILPLUS_JPN \| TNT_UK_REFR \| KEC \| DPD_RO \| TNT_JP \| TH_CJ \| EC_CN \| FASTWAY_UK \| FASTWAY_US \| GLS_DE \| GLS_ES \| GLS_FR \| MONDIAL_BE \| SGT_IT \| TNT_CN \| TNT_DE \| TNT_ES \| TNT_PL \| PARCELFORCE \| SWISS_POST \| TOLL_IPEC \| AIR_21 \| AIRSPEED \| BERT \| BLUEDART \| COLLECTPLUS \| COURIERPLUS \| COURIER_POST \| DHL_GLOBAL_MAIL \| DPD_UK \| DELTEC_DE \| DEUTSCHE_DE \| DOTZOT \| ELTA_GR \| EMS_CN \| ECARGO \| ENSENDA \| FERCAM_IT \| FASTWAY_ZA \| FASTWAY_AU \| FIRST_LOGISITCS \| GEODIS \| GLOBEGISTICS \| GREYHOUND \| JETSHIP_MY \| LION_PARCEL \| AEROFLASH \| ONTRAC \| SAGAWA \| SIODEMKA \| STARTRACK \| TNT_AU \| TNT_IT \| TRANSMISSION \| YAMATO \| DHL_IT \| DHL_AT \| LOGISTICSWORLDWIDE_KR \| GLS_SPAIN \| AMAZON_UK_API \| DPD_FR_REFERENCE \| DHLPARCEL_UK \| MEGASAVE \| QUALITYPOST \| IDS_LOGISTICS \| JOYINGBOX \| PANTHER_ORDER_NUMBER \| WATKINS_SHEPARD \| FASTTRACK \| UP_EXPRESS \| ELOGISTICA \| ECOURIER \| CJ_PHILIPPINES \| SPEEDEX \| ORANGECONNEX \| TECOR \| SAEE \| GLS_ITALY_FTP \| DELIVERE \| YYCOM \| ADICIONAL_PT \| DKSH \| NIPPON_EXPRESS_FTP \| GOLS \| FUJEXP \| QTRACK \| OMLOGISTICS_API \| GDPHARM \| MISUMI_CN \| AIR_CANADA \| CITY56_WEBHOOK \| SAGAWA_API \| KEDAEX \| PGEON_API \| WEWORLDEXPRESS \| JT_LOGISTICS \| TRUSK \| VIAXPRESS \| DHL_SUPPLYCHAIN_ID \| ZUELLIGPHARMA_SFTP \| MEEST \| TOLL_PRIORITY \| MOTHERSHIP_API \| CAPITAL \| EUROPAKET_API \| HFD \| TOURLINE_REFERENCE \| GIO_ECOURIER \| CN_LOGISTICS \| PANDION \| BPOST_API \| PASSPORTSHIPPING \| PAKAJO \| DACHSER \| YUSEN_SFTP \| SHYPLITE \| XYY \| MWD \| FAXECARGO \| MAZET \| FIRST_LOGISTICS_API \| SPRINT_PACK \| HERMES_DE_FTP \| CONCISE \| KERRY_EXPRESS_TW_API \| EWE \| FASTDESPATCH \| ABCUSTOM_SFTP \| CHAZKI \| SHIPPIE \| GEODIS_API \| NAQEL_EXPRESS \| PAPA_WEBHOOK \| FORWARDAIR \| DIALOGO_LOGISTICA_API \| LALAMOVE_API \| TOMYDOOR \| KRONOS_WEBHOOK \| JTCARGO \| T_CAT \| CONCISE_WEBHOOK \| TELEPORT_WEBHOOK \| CUSTOMCO_API \| SPX_TH \| BOLLORE_LOGISTICS \| CLICKLINK_SFTP \| M3LOGISTICS \| VNPOST_API \| AXLEHIRE_FTP \| SHADOWFAX \| MYHERMES_UK_API \| DAIICHI \| MENSAJEROSURBANOS_API \| POLARSPEED \| IDEXPRESS_ID \| PAYO \| WHISTL_SFTP \| INTEX_DE \| TRANS2U \| PRODUCTCAREGROUP_SFTP \| BIGSMART \| EXPEDITORS_API_REF \| AITWORLDWIDE_API \| WORLDCOURIER \| QUIQUP \| AGEDISS_SFTP \| ANDREANI_API \| CRLEXPRESS \| SMARTCAT \| CROSSFLIGHT \| PROCARRIER \| DHL_REFERENCE_API \| SEINO_API \| WSPEXPRESS \| KRONOS \| TOTAL_EXPRESS_API \| PARCLL \| XPEDIGO \| STAR_TRACK_WEBHOOK \| GPOST \| UCS \| DMFGROUP \| COORDINADORA_API \| MARKEN \| NTL \| REDJEPAKKETJE \| ALLIED_EXPRESS_FTP \| MONDIALRELAY_ES \| NAEKO_FTP \| MHI \| SHIPPIFY \| MALCA_AMIT_API \| JTEXPRESS_SG_API \| DACHSER_WEB \| FLIGHTLG \| CAGO \| COM1EXPRESS \| TONAMI_FTP \| PACKFLEET \| PUROLATOR_INTERNATIONAL \| WINESHIPPING_WEBHOOK \| DHL_ES_SFTP \| PCHOME_API \| CESKAPOSTA_API \| GORUSH \| HOMERUNNER \| AMAZON_ORDER \| EFWNOW_API \| CBL_LOGISTICA_API \| NIMBUSPOST \| LOGWIN_LOGISTICS \| NOWLOG_API \| DPD_NL \| GODEPENDABLE \| ESDEX \| LOGISYSTEMS_SFTP \| EXPEDITORS \| SNTGLOBAL_API \| SHIPX \| QINTL_API \| PACKS \| POSTNL_INTERNATIONAL \| AMAZON_EMAIL_PUSH \| DHL_API \| SPX \| AXLEHIRE \| ICSCOURIER \| DIALOGO_LOGISTICA \| SHUNBANG_EXPRESS \| TCS_API \| SF_EXPRESS_CN \| PACKETA \| SIC_TELIWAY \| MONDIALRELAY_FR \| INTIME_FTP \| JD_EXPRESS \| FASTBOX \| PATHEON \| INDIA_POST \| TIPSA_REF \| ECOFREIGHT \| VOX \| DIRECTFREIGHT_AU_REF \| BESTTRANSPORT_SFTP \| AUSTRALIA_POST_API \| FRAGILEPAK_SFTP \| FLIPXP \| VALUE_WEBHOOK \| DAESHIN \| SHERPA \| MWD_API \| SMARTKARGO \| DNJ_EXPRESS \| GOPEOPLE \| MYSENDLE_API \| ARAMEX_API \| PIDGE \| THAIPARCELS \| PANTHER_REFERENCE_API \| POSTAPLUS \| BUFFALO \| U_ENVIOS \| ELITE_CO \| ROCHE_INTERNAL_SFTP \| DBSCHENKER_ICELAND \| TNT_FR_REFERENCE \| NEWGISTICSAPI \| GLOVO \| GWLOGIS_API \| SPREETAIL_API \| MOOVA \| PLYCONGROUP \| USPS_WEBHOOK \| REIMAGINEDELIVERY \| EDF_FTP \| DAO365 \| BIOCAIR_FTP \| RANSA_WEBHOOK \| SHIPXPRES \| COURANT_PLUS_API \| SHIPA \| HOMELOGISTICS \| DX \| POSTE_ITALIANE_PACCOCELERE \| TOLL_WEBHOOK \| LCTBR_API \| DX_FREIGHT \| DHL_SFTP \| SHIPROCKET \| UBER_WEBHOOK \| STATOVERNIGHT \| BURD \| FASTSHIP \| IBVENTURE_WEBHOOK \| GATI_KWE_API \| CRYOPDP_FTP \| HUBBED \| TIPSA_API \| ARASKARGO \| THIJS_NL \| ATSHEALTHCARE_REFERENCE \| 99MINUTOS \| HELLENIC_POST \| HSM_GLOBAL \| MNX \| NMTRANSFER \| LOGYSTO \| INDIA_POST_INT \| AMAZON_FBA_SWISHIP_IN \| SRT_TRANSPORT \| BOMI \| DELIVERR_SFTP \| HSDEXPRESS \| SIMPLETIRE_WEBHOOK \| HUNTER_EXPRESS_SFTP \| UPS_API \| WOOYOUNG_LOGISTICS_SFTP \| PHSE_API \| WISH_EMAIL_PUSH \| NORTHLINE \| MEDAFRICA \| DPD_AT_SFTP \| ANTERAJA \| DHL_GLOBAL_FORWARDING_API \| LBCEXPRESS_API \| SIMSGLOBAL \| CDLDELIVERS \| TYP \| TESTING_COURIER_WEBHOOK \| PANDAGO_API \| ROYAL_MAIL_FTP \| THUNDEREXPRESS \| SECRETLAB_WEBHOOK \| SETEL \| JD_WORLDWIDE \| DPD_RU_API \| ARGENTS_WEBHOOK \| POSTONE \| TUSKLOGISTICS \| RHENUS_UK_API \| TAQBIN_SG_API \| INNTRALOG_SFTP \| DAYROSS \| CORREOSEXPRESS_API \| INTERNATIONAL_SEUR_API \| YODEL_API \| HEROEXPRESS \| DHL_SUPPLYCHAIN_IN \| URGENT_CARGUS \| FRONTDOORCORP \| JTEXPRESS_PH \| PARCELSTARS_WEBHOOK \| DPD_SK_SFTP \| MOVIANTO \| OZEPARTS_SHIPPING \| KARGOMKOLAY \| TRUNKRS \| OMNIRPS_WEBHOOK \| CHILEXPRESS \| TESTING_COURIER \| JNE_API \| BJSHOMEDELIVERY_FTP \| DEXPRESS_WEBHOOK \| USPS_API \| TRANSVIRTUAL \| SOLISTICA_API \| CHIENVENTURE_WEBHOOK \| DPD_UK_SFTP \| INPOST_UK \| JAVIT \| ZTO_DOMESTIC \| DHL_GT_API \| CEVA_TRACKING \| KOMON_EXPRESS \| EASTWESTCOURIER_FTP \| DANNIAO \| SPECTRAN \| DELIVER_IT \| RELAISCOLIS \| GLS_SPAIN_API \| POSTPLUS \| AIRTERRA \| GIO_ECOURIER_API \| DPD_CH_SFTP \| FEDEX_API \| INTERSMARTTRANS \| HERMES_UK_SFTP \| EXELOT_FTP \| DHL_PA_API \| VIRTRANSPORT_SFTP \| WORLDNET \| INSTABOX_WEBHOOK \| KNG \| FLASHEXPRESS_WEBHOOK \| MAGYAR_POSTA_API \| WESHIP_API \| OHI_WEBHOOK \| MUDITA \| BLUEDART_API \| T_CAT_API \| ADS \| HERMES_IT \| FITZMARK_API \| POSTI_API \| SMSA_EXPRESS_WEBHOOK \| TAMERGROUP_WEBHOOK \| LIVRAPIDE \| NIPPON_EXPRESS \| BETTERTRUCKS \| FAN \| PB_USPSFLATS_FTP \| PARCELRIGHT \| ITHINKLOGISTICS \| KERRY_EXPRESS_TH_WEBHOOK \| ECOUTIER \| SHOWL \| BRT_IT_API \| RIXONHK_API \| DBSCHENKER_API \| ILYANGLOGIS \| MAIL_BOX_ETC \| WESHIP \| DHL_GLOBAL_MAIL_API \| ACTIVOS24_API \| ATSHEALTHCARE \| LUWJISTIK \| GW_WORLD \| FAIRSENDEN_API \| SERVIP_WEBHOOK \| SWISHIP \| TANET \| HOTSIN_CARGO \| DIREX \| HUANTONG \| IMILE_API \| AUEXPRESS \| NYTLOGISTICS \| DSV_REFERENCE \| NOVOFARMA_WEBHOOK \| AITWORLDWIDE_SFTP \| SHOPOLIVE \| FNF_ZA \| DHL_ECOMMERCE_GC \| FETCHR \| STARLINKS_API \| YYEXPRESS \| SERVIENTREGA \| HANJIN \| SPANISH_SEUR_FTP \| DX_B2B_CONNUM \| HELTHJEM_API \| INEXPOST \| A2B_BA \| RHENUS_GROUP \| SBERLOGISTICS_RU \| MALCA_AMIT \| PPL \| OSM_WORLDWIDE_SFTP \| ACILOGISTIX \| OPTIMACOURIER \| NOVA_POSHTA_API \| LOGGI \| YIFAN \| MYDYNALOGIC \| MORNINGLOBAL \| CONCISE_API \| FXTRAN \| DELIVERYOURPARCEL_ZA \| UPARCEL \| MOBI_BR \| LOGINEXT_WEBHOOK \| EMS \| SPEEDY \| ZOOM_RED \| NAVLUNGO \| CASTLEPARCELS \| WEEE \| PACKALY \| YUNHUIPOST \| YOUPARCEL \| LEMAN \| MOOVIN \| URB_IT \| MULTIENTREGAPANAMA \| JUSDASR \| DISCOUNTPOST \| RHENUS_UK \| SWISHIP_JP \| GLS_US \| SMTL \| EMEGA \| EXPRESSONE_SV \| HEPSIJET \| WELIVERY \| BRINGER \| EASYROUTES \| MRW \| RPM \| DPD_PRT \| GLS_ROMANIA \| LMPARCEL \| GTAGSM \| DOMINO \| ESHIPPER \| TRANSPAK \| XINDUS \| AOYUE \| EASYPARCEL \| EXPRESSONE \| SENDEO_KARGO \| SPEEDAF \| ETOWER \| GCX \| NINJAVAN_VN \| ALLEGRO \| JUMPPOINT \| SHIPGLOBAL_US \| KINISI \| OAKH \| AWEST \| BARSAN \| ENERGOLOGISTIC \| MADROOEX \| GOBOLT \| SWISS_UNIVERSAL_EXPRESS \| IORDIRECT \| XMSZM \| GLS_HUN \| SENDY \| BRAUNSEXPRESS \| GRANDSLAMEXPRESS \| XGS \| OTSCHILE \| PACK_UP \| PARCELSTARS \| TEAMEXPRESSLLC \| ASYADEXPRESS \| TDN \| EARLYBIRD \| CACESA \| PARCELJET \| MNG_KARGO \| SUPERPACKLINE \| SPEEDX \| VESYL \| SKYKING \| DIRMENSAJERIA \| NETLOGIXGROUP \| ZYOU \| JAWAR \| AGSYSTEMS \| GPS \| PTT_KARGO \| MAERGO \| ARIHANTCOURIER \| VTFE \| YUNANT \| URBIFY \| PACK_MAN \| LIEFERGRUN \| OBIBOX \| PAIKEDA \| SCOTTY \| INTELCOM_CA \| SWE \| ASENDIA \| DPD_AT \| RELAY \| ATA \| SKYEXPRESS_INTERNATIONAL \| SURAT_KARGO \| SGLINK \| FLEETOPTICSINC \| SHOPLINE \| PIGGYSHIP \| LOGOIX \| KOLAY_GELSIN \| ASSOCIATED_COURIERS \| UPS_CHECKER \| WINESHIPPING \| SPEDISCI \| FOURKITES \| ETONAS \| FINMILE \| UNIUNI \| RODONAVES \| INPOST_IT \| TFORCE_FREIGHT \| RICHMOM \| FRANCO \| ECPARCEL \| FEDEX_CHINA \| GOFO_EXPRESS \| SHIPBOB \| JERSEYPOST_ATLAS \| CORETRAILS \| RHENUS_ITALY \| JADLOG \| JITSU \| YANWEN_EXPRESS \| DASHLINK \| SEINO_SUPER_EXPRESS \| FLOSHIP \| METROSCG \| SENDPARCEL \| P2P \| CN_EXPRESS \| CIRROTRACK \| LAND_LOGISTICS \| VEHO \| MEDLINE \| VDTRACK \| SINO_SCM \| 3PE_EXPRESS \| SWIFTX \| SFYDEXPRESS \| TOPTRANS \| OTHER` | Yes | The carrier for the shipment. Some carriers have a global version as well as local subsidiaries. The subsidiaries are repeated over many countries and might also have an entry in the global list. Choose the carrier for your country. If the carrier is not available for your country, choose the global version of the carrier. If your carrier name is not in the list, set `carrier` to `OTHER` and set carrier name in `carrier_name_other`. For allowed values, see Carriers. |
| `carrier_name_other` | `string` | No | The name of the carrier for the shipment. Provide this value only if the carrier parameter is OTHER. This property supports Unicode. |
| `capture_id` | `string` | Yes | The PayPal capture ID. |
| `notify_payer` | `boolean` | No | If true, PayPal will send an email notification to the payer of the PayPal transaction. The email contains the tracking details provided through the Orders tracking API request. Independent of any value passed for `notify_payer`, the payer may receive tracking notifications within the PayPal app, based on the user's notification preferences. |
| `items` | `object[]` | No | An array of details of items in the shipment. |

> [accordion] items full type
>
> ```ts theme={null}
> (
>   {
>     name?: string,
>     quantity?: string,
>     sku?: string,
>     url?: string,
>     image_url?: string,
>     upc?: {
>       type: UPC-A | UPC-B | UPC-C | UPC-D | UPC-E | UPC-2 | UPC-5,
>       code: string
>     }& any
>   }& any
> )[]
> ```

**Output:** `object`

> [accordion] Output full type
>
> ```ts theme={null}
> (
>   {
>     create_time?: string & any | null,
>     update_time?: string & any | null
>   }& any
> )& {
>   id?: string | null,
>   payment_source?: {
>     card?: {
>       name?: string | null,
>       last_digits?: string | null,
>       brand?: string & any | null,
>       available_networks?: (string & any)[] | null,
>       type?: string & any | null,
>       authentication_result?: {
>         liability_shift?: string | null,
>         three_d_secure?: {
>           authentication_status?: string & any | null,
>           enrollment_status?: string & any | null
>         } | null
>       } | null,
>       attributes?: {
>         vault?: (
>           {
>             id?: string | null,
>             status?: string | null,
>             customer?: {
>               id?: string | null,
>               email_address?: string & any | null,
>               phone?: {
>                 phone_type?: string | null,
>                 phone_number?: {
>                   national_number?: string | null
>                 }& any | null
>               }& any | null,
>               name?: {
>                 prefix?: string | null,
>                 given_name?: string | null,
>                 surname?: string | null,
>                 middle_name?: string | null,
>                 suffix?: string | null,
>                 full_name?: string | null
>               }& any | null
>             }& any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null
>           }& any
>         )& {
>           customer?: {
>             id?: string | null,
>             email_address?: string & any | null,
>             phone?: {
>               phone_type?: string | null,
>               phone_number?: {
>                 national_number?: string | null
>               }& any | null
>             }& any | null,
>             name?: {
>               prefix?: string | null,
>               given_name?: string | null,
>               surname?: string | null,
>               middle_name?: string | null,
>               suffix?: string | null,
>               full_name?: string | null
>             }& any | null,
>             merchant_customer_id?: string | null
>           } | null
>         } | null
>       } | null,
>       from_request?: {
>         expiry?: string & any | null,
>         last_digits?: string | null
>       } | null,
>       expiry?: string & any | null,
>       bin_details?: {
>         bin?: string | null,
>         issuing_bank?: string | null,
>         bin_country_code?: string & any | null,
>         products?: string[] | null
>       }& any | null,
>       stored_credential?: {
>         payment_initiator?: string | null,
>         payment_type?: string | null,
>         usage?: string | null,
>         previous_network_transaction_reference?: {
>           id?: string | null,
>           date?: string | null,
>           network?: string & any | null,
>           acquirer_reference_number?: string | null
>         } | null
>       } | null
>     } | null,
>     paypal?: {
>       email_address?: string & any | null,
>       account_id?: string & any | null,
>       account_status?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         full_name?: string | null
>       }& any | null,
>       phone_type?: string | null,
>       phone_number?: {
>         national_number?: string | null
>       }& any | null,
>       birth_date?: string & any | null,
>       business_name?: string | null,
>       tax_info?: {
>         tax_id?: string | null,
>         tax_id_type?: string | null
>       }& any | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       }& any | null,
>       attributes?: {
>         vault?: (
>           {
>             id?: string | null,
>             status?: string | null,
>             customer?: {
>               id?: string | null,
>               email_address?: string & any | null,
>               phone?: {
>                 phone_type?: string | null,
>                 phone_number?: {
>                   national_number?: string | null
>                 }& any | null
>               }& any | null,
>               name?: {
>                 prefix?: string | null,
>                 given_name?: string | null,
>                 surname?: string | null,
>                 middle_name?: string | null,
>                 suffix?: string | null,
>                 full_name?: string | null
>               }& any | null
>             }& any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null
>           }& any
>         )& {
>           customer?: {
>             id?: string | null,
>             email_address?: string & any | null,
>             phone?: {
>               phone_type?: string | null,
>               phone_number?: {
>                 national_number?: string | null
>               }& any | null
>             }& any | null,
>             name?: {
>               prefix?: string | null,
>               given_name?: string | null,
>               surname?: string | null,
>               middle_name?: string | null,
>               suffix?: string | null,
>               full_name?: string | null
>             }& any | null,
>             merchant_customer_id?: string | null
>           } | null
>         } | null,
>         cobranded_cards?: (
>           {
>             labels?: string[] | null,
>             payee?: {
>               email_address?: string & any | null,
>               merchant_id?: string & any | null
>             }& any | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null
>           }& any
>         )[] | null
>       } | null,
>       stored_credential?: {
>         payment_initiator?: string | null,
>         charge_pattern?: string & any | null,
>         usage_pattern?: string | null,
>         usage?: string | null
>       } | null,
>       experience_status?: string | null
>     } | null,
>     bancontact?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null,
>       card_last_digits?: string | null
>     } | null,
>     blik?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       email?: string & any | null,
>       one_click?: {
>         consumer_reference?: string | null
>       }& any | null
>     } | null,
>     eps?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null
>     } | null,
>     giropay?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null
>     } | null,
>     ideal?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null
>     } | null,
>     mybank?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null
>     } | null,
>     p24?: {
>       name?: string & any | null,
>       email?: string & any | null,
>       country_code?: string & any | null,
>       payment_descriptor?: string | null,
>       method_id?: string | null,
>       method_description?: string | null
>     } | null,
>     sofort?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null
>     } | null,
>     trustly?: {
>       name?: string & any | null,
>       country_code?: string & any | null,
>       email?: string & any | null,
>       bic?: string & any | null,
>       iban_last_chars?: string | null
>     } | null,
>     apple_pay?: {
>       id?: string | null,
>       token?: string | null,
>       name?: string & any | null,
>       email_address?: string & any | null,
>       phone_number?: {
>         country_code?: string | null,
>         national_number?: string | null,
>         extension_number?: string | null
>       }& any | null,
>       card?: ((
>         {
>           name?: string | null,
>           last_digits?: string | null,
>           brand?: string & any | null,
>           available_networks?: (string & any)[] | null,
>           type?: string & any | null,
>           authentication_result?: {
>             liability_shift?: string | null,
>             three_d_secure?: {
>               authentication_status?: string & any | null,
>               enrollment_status?: string & any | null
>             } | null
>           } | null,
>           attributes?: {
>             vault?: (
>               {
>                 id?: string | null,
>                 status?: string | null,
>                 customer?: {
>                   id?: string | null,
>                   email_address?: string & any | null,
>                   phone?: {
>                     phone_type?: string | null,
>                     phone_number?: {
>                       national_number?: string | null
>                     }& any | null
>                   }& any | null,
>                   name?: {
>                     prefix?: string | null,
>                     given_name?: string | null,
>                     surname?: string | null,
>                     middle_name?: string | null,
>                     suffix?: string | null,
>                     full_name?: string | null
>                   }& any | null
>                 }& any | null,
>                 links?: (
>                   {
>                     href?: string | null,
>                     rel?: string | null,
>                     method?: string | null,
>                     title?: string | null,
>                     mediaType?: string | null,
>                     encType?: string | null,
>                     schema?: {
>                       additionalItems?: {
>                       } | null,
>                       dependencies?: {
>                       } | null,
>                       items?: {
>                       } | null,
>                       definitions?: {
>                       } | null,
>                       patternProperties?: {
>                       } | null,
>                       properties?: {
>                       } | null,
>                       allOf?: {
>                       }[] | null,
>                       anyOf?: {
>                       }[] | null,
>                       oneOf?: {
>                       }[] | null,
>                       not?: {
>                       } | null,
>                       links?: {
>                       }[] | null,
>                       fragmentResolution?: string | null,
>                       media?: {
>                         type?: string | null,
>                         binaryEncoding?: string | null
>                       } | null,
>                       pathStart?: string | null
>                     }& any | null,
>                     targetSchema?: {
>                       additionalItems?: {
>                       } | null,
>                       dependencies?: {
>                       } | null,
>                       items?: {
>                       } | null,
>                       definitions?: {
>                       } | null,
>                       patternProperties?: {
>                       } | null,
>                       properties?: {
>                       } | null,
>                       allOf?: {
>                       }[] | null,
>                       anyOf?: {
>                       }[] | null,
>                       oneOf?: {
>                       }[] | null,
>                       not?: {
>                       } | null,
>                       links?: {
>                       }[] | null,
>                       fragmentResolution?: string | null,
>                       media?: {
>                         type?: string | null,
>                         binaryEncoding?: string | null
>                       } | null,
>                       pathStart?: string | null
>                     }& any | null
>                   }& any
>                 )[] | null
>               }& any
>             )& {
>               customer?: {
>                 id?: string | null,
>                 email_address?: string & any | null,
>                 phone?: {
>                   phone_type?: string | null,
>                   phone_number?: {
>                     national_number?: string | null
>                   }& any | null
>                 }& any | null,
>                 name?: {
>                   prefix?: string | null,
>                   given_name?: string | null,
>                   surname?: string | null,
>                   middle_name?: string | null,
>                   suffix?: string | null,
>                   full_name?: string | null
>                 }& any | null,
>                 merchant_customer_id?: string | null
>               } | null
>             } | null
>           } | null,
>           from_request?: {
>             expiry?: string & any | null,
>             last_digits?: string | null
>           } | null,
>           expiry?: string & any | null,
>           bin_details?: {
>             bin?: string | null,
>             issuing_bank?: string | null,
>             bin_country_code?: string & any | null,
>             products?: string[] | null
>           }& any | null,
>           stored_credential?: {
>             payment_initiator?: string | null,
>             payment_type?: string | null,
>             usage?: string | null,
>             previous_network_transaction_reference?: {
>               id?: string | null,
>               date?: string | null,
>               network?: string & any | null,
>               acquirer_reference_number?: string | null
>             } | null
>           } | null
>         }& any
>       )& {
>         name?: string | null,
>         billing_address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           address_line_3?: string | null,
>           admin_area_4?: string | null,
>           admin_area_3?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null,
>           address_details?: {
>             street_number?: string | null,
>             street_name?: string | null,
>             street_type?: string | null,
>             delivery_service?: string | null,
>             building_name?: string | null,
>             sub_building?: string | null
>           } | null
>         }& any | null,
>         country_code?: string & any | null
>       })& any | null,
>       attributes?: {
>         vault?: {
>           id?: string | null,
>           status?: string | null,
>           customer?: {
>             id?: string | null,
>             email_address?: string & any | null,
>             phone?: {
>               phone_type?: string | null,
>               phone_number?: {
>                 national_number?: string | null
>               }& any | null
>             }& any | null,
>             name?: {
>               prefix?: string | null,
>               given_name?: string | null,
>               surname?: string | null,
>               middle_name?: string | null,
>               suffix?: string | null,
>               full_name?: string | null
>             }& any | null
>           }& any | null,
>           links?: (
>             {
>               href?: string | null,
>               rel?: string | null,
>               method?: string | null,
>               title?: string | null,
>               mediaType?: string | null,
>               encType?: string | null,
>               schema?: {
>                 additionalItems?: {
>                 } | null,
>                 dependencies?: {
>                 } | null,
>                 items?: {
>                 } | null,
>                 definitions?: {
>                 } | null,
>                 patternProperties?: {
>                 } | null,
>                 properties?: {
>                 } | null,
>                 allOf?: {
>                 }[] | null,
>                 anyOf?: {
>                 }[] | null,
>                 oneOf?: {
>                 }[] | null,
>                 not?: {
>                 } | null,
>                 links?: {
>                 }[] | null,
>                 fragmentResolution?: string | null,
>                 media?: {
>                   type?: string | null,
>                   binaryEncoding?: string | null
>                 } | null,
>                 pathStart?: string | null
>               }& any | null,
>               targetSchema?: {
>                 additionalItems?: {
>                 } | null,
>                 dependencies?: {
>                 } | null,
>                 items?: {
>                 } | null,
>                 definitions?: {
>                 } | null,
>                 patternProperties?: {
>                 } | null,
>                 properties?: {
>                 } | null,
>                 allOf?: {
>                 }[] | null,
>                 anyOf?: {
>                 }[] | null,
>                 oneOf?: {
>                 }[] | null,
>                 not?: {
>                 } | null,
>                 links?: {
>                 }[] | null,
>                 fragmentResolution?: string | null,
>                 media?: {
>                   type?: string | null,
>                   binaryEncoding?: string | null
>                 } | null,
>                 pathStart?: string | null
>               }& any | null
>             }& any
>           )[] | null
>         } | null
>       }& any | null,
>       stored_credential?: {
>         payment_initiator?: string | null,
>         payment_type?: string | null,
>         usage?: string | null,
>         previous_network_transaction_reference?: {
>           id?: string | null,
>           date?: string | null,
>           network?: string & any | null,
>           acquirer_reference_number?: string | null
>         } | null
>       } | null
>     } | null,
>     google_pay?: {
>       name?: string & any | null,
>       email_address?: string & any | null,
>       phone_number?: {
>         country_code?: string | null,
>         national_number?: string | null
>       }& any | null,
>       card?: {
>         name?: string | null,
>         last_digits?: string | null,
>         type?: string & any | null,
>         brand?: string & any | null,
>         billing_address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           address_line_3?: string | null,
>           admin_area_4?: string | null,
>           admin_area_3?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null,
>           address_details?: {
>             street_number?: string | null,
>             street_name?: string | null,
>             street_type?: string | null,
>             delivery_service?: string | null,
>             building_name?: string | null,
>             sub_building?: string | null
>           } | null
>         }& any | null,
>         authentication_result?: {
>           liability_shift?: string | null,
>           three_d_secure?: {
>             authentication_status?: string & any | null,
>             enrollment_status?: string & any | null
>           } | null
>         } | null
>       }& any | null
>     } | null,
>     venmo?: {
>       email_address?: string & any | null,
>       account_id?: string & any | null,
>       user_name?: string | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         full_name?: string | null
>       }& any | null,
>       phone_number?: {
>         national_number?: string | null
>       }& any | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null
>       }& any | null,
>       return_flow?: string | null,
>       attributes?: {
>         vault?: (
>           {
>             id?: string | null,
>             status?: string | null,
>             customer?: {
>               id?: string | null,
>               email_address?: string & any | null,
>               phone?: {
>                 phone_type?: string | null,
>                 phone_number?: {
>                   national_number?: string | null
>                 }& any | null
>               }& any | null,
>               name?: {
>                 prefix?: string | null,
>                 given_name?: string | null,
>                 surname?: string | null,
>                 middle_name?: string | null,
>                 suffix?: string | null,
>                 full_name?: string | null
>               }& any | null
>             }& any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null
>           }& any
>         )& {
>           customer?: {
>             id?: string | null,
>             email_address?: string & any | null,
>             phone?: {
>               phone_type?: string | null,
>               phone_number?: {
>                 national_number?: string | null
>               }& any | null
>             }& any | null,
>             name?: {
>               prefix?: string | null,
>               given_name?: string | null,
>               surname?: string | null,
>               middle_name?: string | null,
>               suffix?: string | null,
>               full_name?: string | null
>             }& any | null
>           } | null
>         } | null
>       } | null
>     } | null,
>     crypto?: {
>       country_code?: string & any | null,
>       name?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null
>       }& any | null,
>       experience_context?: {
>         brand_name?: string | null,
>         locale?: string & any | null,
>         shipping_preference?: string | null,
>         return_url?: string & any | null,
>         cancel_url?: string & any | null
>       }& any | null
>     } | null
>   } | null,
>   intent?: string | null,
>   payer?: {
>     email_address?: string & any | null,
>     payer_id?: string & any | null,
>     name?: {
>       prefix?: string | null,
>       given_name?: string | null,
>       surname?: string | null,
>       middle_name?: string | null,
>       suffix?: string | null,
>       full_name?: string | null
>     }& any | null,
>     phone?: {
>       phone_type?: string | null,
>       phone_number?: {
>         national_number?: string | null
>       }& any | null
>     }& any | null,
>     birth_date?: string & any | null,
>     tax_info?: {
>       tax_id?: string | null,
>       tax_id_type?: string | null
>     }& any | null,
>     address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       address_line_3?: string | null,
>       admin_area_4?: string | null,
>       admin_area_3?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null,
>       address_details?: {
>         street_number?: string | null,
>         street_name?: string | null,
>         street_type?: string | null,
>         delivery_service?: string | null,
>         building_name?: string | null,
>         sub_building?: string | null
>       } | null
>     }& any | null
>   }& any | null,
>   purchase_units?: (
>     {
>       reference_id?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null,
>         breakdown?: {
>           item_total?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           shipping?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           handling?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           tax_total?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           insurance?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           shipping_discount?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           discount?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null
>         } | null
>       } | null,
>       payee?: {
>         email_address?: string & any | null,
>         merchant_id?: string & any | null
>       }& any | null,
>       payment_instruction?: {
>         platform_fees?: (
>           {
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             payee?: {
>               email_address?: string & any | null,
>               merchant_id?: string & any | null
>             }& any | null
>           }& any
>         )[] | null,
>         disbursement_mode?: string & any | null,
>         payee_pricing_tier_id?: string | null,
>         payee_receivable_fx_rate_id?: string | null
>       } | null,
>       description?: string | null,
>       custom_id?: string | null,
>       invoice_id?: string | null,
>       id?: string | null,
>       soft_descriptor?: string | null,
>       items?: (
>         {
>           name?: string | null,
>           unit_amount?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           tax?: {
>             currency_code?: string | null,
>             value?: string | null
>           }& any | null,
>           quantity?: string | null,
>           description?: string | null,
>           sku?: string | null,
>           url?: string | null,
>           category?: string | null,
>           image_url?: string | null,
>           upc?: {
>             type?: string | null,
>             code?: string | null
>           }& any | null,
>           billing_plan?: {
>             billing_cycles?: {
>               tenure_type?: string | null,
>               pricing_scheme?: {
>                 price?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 pricing_model?: string | null,
>                 reload_threshold_amount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null
>               }& any | null,
>               total_cycles?: number | null,
>               sequence?: number | null,
>               start_date?: string & any | null
>             }[] | null,
>             setup_fee?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             name?: string | null
>           } | null
>         }& any
>       )[] | null,
>       shipping?: {
>         name?: {
>           prefix?: string | null,
>           given_name?: string | null,
>           surname?: string | null,
>           middle_name?: string | null,
>           suffix?: string | null,
>           full_name?: string | null
>         }& any | null,
>         email_address?: string & any | null,
>         phone_number?: (
>           {
>             country_code?: string | null,
>             national_number?: string | null,
>             extension_number?: string | null
>           }& any
>         )& (
>           {
>             country_code?: string | null,
>             national_number?: string | null
>           }& any
>         ) | null,
>         type?: string | null,
>         options?: (
>           {
>             id?: string | null,
>             label?: string | null,
>             type?: string & any | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             selected?: boolean | null
>           }& any
>         )[] | null,
>         address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           address_line_3?: string | null,
>           admin_area_4?: string | null,
>           admin_area_3?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null,
>           address_details?: {
>             street_number?: string | null,
>             street_name?: string | null,
>             street_type?: string | null,
>             delivery_service?: string | null,
>             building_name?: string | null,
>             sub_building?: string | null
>           } | null
>         }& any | null,
>         trackers?: {
>           id?: string | null,
>           status?: string | null,
>           items?: (
>             {
>               name?: string | null,
>               quantity?: string | null,
>               sku?: string | null,
>               url?: string | null,
>               image_url?: string | null,
>               upc?: {
>                 type?: string | null,
>                 code?: string | null
>               }& any | null
>             }& any
>           )[] | null,
>           links?: (
>             {
>               href?: string | null,
>               rel?: string | null,
>               method?: string | null,
>               title?: string | null,
>               mediaType?: string | null,
>               encType?: string | null,
>               schema?: {
>                 additionalItems?: {
>                 } | null,
>                 dependencies?: {
>                 } | null,
>                 items?: {
>                 } | null,
>                 definitions?: {
>                 } | null,
>                 patternProperties?: {
>                 } | null,
>                 properties?: {
>                 } | null,
>                 allOf?: {
>                 }[] | null,
>                 anyOf?: {
>                 }[] | null,
>                 oneOf?: {
>                 }[] | null,
>                 not?: {
>                 } | null,
>                 links?: {
>                 }[] | null,
>                 fragmentResolution?: string | null,
>                 media?: {
>                   type?: string | null,
>                   binaryEncoding?: string | null
>                 } | null,
>                 pathStart?: string | null
>               }& any | null,
>               targetSchema?: {
>                 additionalItems?: {
>                 } | null,
>                 dependencies?: {
>                 } | null,
>                 items?: {
>                 } | null,
>                 definitions?: {
>                 } | null,
>                 patternProperties?: {
>                 } | null,
>                 properties?: {
>                 } | null,
>                 allOf?: {
>                 }[] | null,
>                 anyOf?: {
>                 }[] | null,
>                 oneOf?: {
>                 }[] | null,
>                 not?: {
>                 } | null,
>                 links?: {
>                 }[] | null,
>                 fragmentResolution?: string | null,
>                 media?: {
>                   type?: string | null,
>                   binaryEncoding?: string | null
>                 } | null,
>                 pathStart?: string | null
>               }& any | null
>             }& any
>           )[] | null,
>           create_time?: string & any | null,
>           update_time?: string & any | null
>         }[] | null
>       }& any | null,
>       supplementary_data?: {
>         card?: {
>           level_2?: {
>             invoice_id?: string | null,
>             tax_total?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null
>           } | null,
>           level_3?: {
>             shipping_amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             duty_amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             discount_amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             shipping_address?: {
>               address_line_1?: string | null,
>               address_line_2?: string | null,
>               address_line_3?: string | null,
>               admin_area_4?: string | null,
>               admin_area_3?: string | null,
>               admin_area_2?: string | null,
>               admin_area_1?: string | null,
>               postal_code?: string | null,
>               country_code?: string | null,
>               address_details?: {
>                 street_number?: string | null,
>                 street_name?: string | null,
>                 street_type?: string | null,
>                 delivery_service?: string | null,
>                 building_name?: string | null,
>                 sub_building?: string | null
>               } | null
>             }& any | null,
>             ships_from_postal_code?: string | null,
>             line_items?: (
>               {
>                 name?: string | null,
>                 quantity?: string | null,
>                 description?: string | null,
>                 sku?: string | null,
>                 url?: string | null,
>                 image_url?: string | null,
>                 upc?: {
>                   type?: string | null,
>                   code?: string | null
>                 }& any | null,
>                 billing_plan?: {
>                   billing_cycles?: {
>                     tenure_type?: string | null,
>                     pricing_scheme?: {
>                       price?: {
>                         currency_code?: string | null,
>                         value?: string | null
>                       }& any | null,
>                       pricing_model?: string | null,
>                       reload_threshold_amount?: {
>                         currency_code?: string | null,
>                         value?: string | null
>                       }& any | null
>                     }& any | null,
>                     total_cycles?: number | null,
>                     sequence?: number | null,
>                     start_date?: string & any | null
>                   }[] | null,
>                   setup_fee?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   name?: string | null
>                 } | null,
>                 unit_amount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 tax?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 commodity_code?: string | null,
>                 discount_amount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 total_amount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 unit_of_measure?: string | null
>               }& any
>             )[] | null
>           } | null
>         }& any | null,
>         risk?: {
>           customer?: {
>             ip_address?: string & any | null
>           } | null
>         }& any | null
>       }& any | null,
>       payments?: {
>         authorizations?: (
>           {
>             status?: string | null,
>             status_details?: {
>               reason?: string | null
>             }& any | null,
>             id?: string | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null,
>               breakdown?: {
>                 item_total?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 shipping?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 handling?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 tax_total?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 insurance?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 shipping_discount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 discount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null
>               } | null
>             }& any | null,
>             invoice_id?: string | null,
>             custom_id?: string | null,
>             network_transaction_reference?: {
>               id?: string | null,
>               date?: string | null,
>               network?: string & any | null,
>               acquirer_reference_number?: string | null
>             } | null,
>             seller_protection?: {
>               status?: string | null,
>               dispute_categories?: string[] | null
>             }& any | null,
>             expiration_time?: string & any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null,
>             create_time?: string & any | null,
>             update_time?: string & any | null,
>             processor_response?: {
>               avs_code?: string | null,
>               cvv_code?: string | null,
>               response_code?: string | null,
>               payment_advice_code?: string | null
>             }& any | null
>           }& any
>         )[] | null,
>         captures?: (
>           {
>             status?: string | null,
>             status_details?: {
>               reason?: string | null
>             }& any | null,
>             id?: string | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null,
>               breakdown?: {
>                 item_total?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 shipping?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 handling?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 tax_total?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 insurance?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 shipping_discount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null,
>                 discount?: {
>                   currency_code?: string | null,
>                   value?: string | null
>                 }& any | null
>               } | null
>             }& any | null,
>             invoice_id?: string | null,
>             custom_id?: string | null,
>             network_transaction_reference?: {
>               id?: string | null,
>               date?: string | null,
>               network?: string & any | null,
>               acquirer_reference_number?: string | null
>             } | null,
>             seller_protection?: {
>               status?: string | null,
>               dispute_categories?: string[] | null
>             }& any | null,
>             final_capture?: boolean | null,
>             seller_receivable_breakdown?: {
>               gross_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               paypal_fee?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               paypal_fee_in_receivable_currency?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               net_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               receivable_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               exchange_rate?: {
>                 source_currency?: string & any | null,
>                 target_currency?: string & any | null,
>                 value?: string | null
>               }& any | null,
>               platform_fees?: (
>                 {
>                   amount?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   payee?: {
>                     email_address?: string & any | null,
>                     merchant_id?: string & any | null
>                   }& any | null
>                 }& any
>               )[] | null
>             }& any | null,
>             disbursement_mode?: string | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null,
>             processor_response?: {
>               avs_code?: string | null,
>               cvv_code?: string | null,
>               response_code?: string | null,
>               payment_advice_code?: string | null
>             }& any | null,
>             create_time?: string & any | null,
>             update_time?: string & any | null
>           }& any
>         )[] | null,
>         refunds?: (
>           {
>             status?: string | null,
>             status_details?: {
>               reason?: string | null
>             }& any | null,
>             id?: string | null,
>             amount?: {
>               currency_code?: string | null,
>               value?: string | null
>             }& any | null,
>             invoice_id?: string | null,
>             custom_id?: string | null,
>             acquirer_reference_number?: string | null,
>             note_to_payer?: string | null,
>             seller_payable_breakdown?: {
>               gross_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               paypal_fee?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               paypal_fee_in_receivable_currency?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               net_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               net_amount_in_receivable_currency?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null,
>               platform_fees?: (
>                 {
>                   amount?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   payee?: {
>                     email_address?: string & any | null,
>                     merchant_id?: string & any | null
>                   }& any | null
>                 }& any
>               )[] | null,
>               net_amount_breakdown?: (
>                 {
>                   payable_amount?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   converted_amount?: {
>                     currency_code?: string | null,
>                     value?: string | null
>                   }& any | null,
>                   exchange_rate?: {
>                     source_currency?: string & any | null,
>                     target_currency?: string & any | null,
>                     value?: string | null
>                   }& any | null
>                 }& any
>               )[] | null,
>               total_refunded_amount?: {
>                 currency_code?: string | null,
>                 value?: string | null
>               }& any | null
>             } | null,
>             payer?: {
>               email_address?: string & any | null,
>               merchant_id?: string & any | null
>             }& any | null,
>             links?: (
>               {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null,
>                 title?: string | null,
>                 mediaType?: string | null,
>                 encType?: string | null,
>                 schema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null,
>                 targetSchema?: {
>                   additionalItems?: {
>                   } | null,
>                   dependencies?: {
>                   } | null,
>                   items?: {
>                   } | null,
>                   definitions?: {
>                   } | null,
>                   patternProperties?: {
>                   } | null,
>                   properties?: {
>                   } | null,
>                   allOf?: {
>                   }[] | null,
>                   anyOf?: {
>                   }[] | null,
>                   oneOf?: {
>                   }[] | null,
>                   not?: {
>                   } | null,
>                   links?: {
>                   }[] | null,
>                   fragmentResolution?: string | null,
>                   media?: {
>                     type?: string | null,
>                     binaryEncoding?: string | null
>                   } | null,
>                   pathStart?: string | null
>                 }& any | null
>               }& any
>             )[] | null,
>             create_time?: string & any | null,
>             update_time?: string & any | null
>           }& any
>         )[] | null
>       }& any | null
>     }& any
>   )[] | null,
>   status?: string & any | null,
>   links?: (
>     {
>       href?: string | null,
>       rel?: string | null,
>       method?: string | null,
>       title?: string | null,
>       mediaType?: string | null,
>       encType?: string | null,
>       schema?: {
>         additionalItems?: {
>         } | null,
>         dependencies?: {
>         } | null,
>         items?: {
>         } | null,
>         definitions?: {
>         } | null,
>         patternProperties?: {
>         } | null,
>         properties?: {
>         } | null,
>         allOf?: {
>         }[] | null,
>         anyOf?: {
>         }[] | null,
>         oneOf?: {
>         }[] | null,
>         not?: {
>         } | null,
>         links?: {
>         }[] | null,
>         fragmentResolution?: string | null,
>         media?: {
>           type?: string | null,
>           binaryEncoding?: string | null
>         } | null,
>         pathStart?: string | null
>       }& any | null,
>       targetSchema?: {
>         additionalItems?: {
>         } | null,
>         dependencies?: {
>         } | null,
>         items?: {
>         } | null,
>         definitions?: {
>         } | null,
>         patternProperties?: {
>         } | null,
>         properties?: {
>         } | null,
>         allOf?: {
>         }[] | null,
>         anyOf?: {
>         }[] | null,
>         oneOf?: {
>         }[] | null,
>         not?: {
>         } | null,
>         links?: {
>         }[] | null,
>         fragmentResolution?: string | null,
>         media?: {
>           type?: string | null,
>           binaryEncoding?: string | null
>         } | null,
>         pathStart?: string | null
>       }& any | null
>     }& any
>   )[] | null
> }
> ```

***

### trackers.update

`orders.trackers.update`

Update or cancel tracking information for an order

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.orders.trackers.update({
	id: '5O190127TN364715T',
	tracker_id: '443844607820',
	patch: [{ op: 'add' }],
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the order that the tracking information is associated with. |
| `tracker_id` | `string` | Yes | The order tracking ID. |
| `paypal_auth_assertion` | `string` | No | Header for an API client-provided JWT assertion that identifies the merchant. Establishing the consent to act-on-behalf of a merchant is a prerequisite for using this header. |
| `patch` | `object[]` | Yes | An array of JSON patch objects to apply partial updates to resources. |

> [accordion] patch full type
>
> ```ts theme={null}
> (
>   {
>     op: add | remove | replace | move | copy | test,
>     path?: string,
>     value?: any,
>     from?: string
>   }& any
> )[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | PayPal accepted the call; it answered with no body (204). |

***

### update

`orders.update`

Update order

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.orders.update({
	id: '5O190127TN364715T',
	patch: [{ op: 'replace', path: '/purchase_units/@reference_id==\'order-1001\'/description', value: 'Corsair hoodie' }],
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the order to update. |
| `paypal_auth_assertion` | `string` | No | Header for an API client-provided JWT assertion that identifies the merchant. Establishing the consent to act-on-behalf of a merchant is a prerequisite for using this header. |
| `patch` | `object[]` | Yes | An array of JSON patch objects to apply partial updates to resources. |

> [accordion] patch full type
>
> ```ts theme={null}
> (
>   {
>     op: add | remove | replace | move | copy | test,
>     path?: string,
>     value?: any,
>     from?: string
>   }& any
> )[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | PayPal accepted the call; it answered with no body (204). |

***

## Partner Referrals

### create

`partnerReferrals.create`

Create partner referral

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.partnerReferrals.create({
	operations: [{ operation: 'API_INTEGRATION' }],
	legal_consents: [{ type: 'SHARE_DATA_CONSENT', granted: true }],
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `individual_owners` | `object[]` | No | List of owners in the account. There should be only one primary account owner which is mentioned in their role\_type. |
| `business_entity` | `object` | No | — |
| `email` | `string` | No | The internationalized email address.Note: Up to 64 characters are allowed before and 255 characters are allowed after the @ sign. However, the generally accepted maximum length for an email address is 254 characters. The pattern verifies that an unquoted @ sign exists. |
| `preferred_language_code` | `string` | No | The [language tag](https://tools.ietf.org/html/bcp47#section-2) for the language in which to localize the error-related strings, such as messages, issues, and suggested actions. The tag is made up of the [ISO 639-2 language code](https://www.loc.gov/standards/iso639-2/php/code_list.php), the optional [ISO-15924 script tag](https://www.unicode.org/iso15924/codelists.html), and the [ISO-3166 alpha-2 country code](https://docs.corsair.dev/docs/integration/direct/rest/country-codes/). |
| `tracking_id` | `string` | No | The partner's unique identifier for this customer in their system which can be used to track user in PayPal. |
| `partner_config_override` | `object` | No | The preference to customize the web experience of the customer by overriding that is set at the Partner's Account. |
| `financial_instruments` | `object` | No | Financial instruments attached to this account. |
| `operations` | `object[]` | Yes | An array of operations to perform for the customer while they share their data. |
| `products` | `(ALIPAY \| BANCONTACT \| BLIK \| EPS \| PPCP \| EXPRESS_CHECKOUT \| PAYMENT_METHODS \| ADVANCED_VAULTING \| IDEAL \| MB_WAY \| MULTIBANCO \| PAYPAL_COMMERCE_PLATFORM_BUSINESS \| PPPLUS \| PRZELEWY24 \| SATISPAY \| TRUSTLY \| WECHAT_PAY \| WEBSITE_PAYMENT_PRO \| ZETTLE \| HYPERWALLET_PAYOUTS)[]` | No | An array of PayPal products to which the partner wants to onboard the customer. |
| `capabilities` | `(PAYPAL_WALLET_VAULTING_ADVANCED \| PAY_UPON_INVOICE \| APPLE_PAY \| GOOGLE_PAY)[]` | No | An array of capabilities which the partner wants to enable for the selected products. Supported only when products are specified. |
| `outside_process_dependencies` | `any[]` | No | An array of dependent processes. |
| `legal_consents` | `object[]` | Yes | An array of all consents that the partner has received from this seller. If `SHARE_DATA_CONSENT` is not granted, PayPal does not store customer data. |
| `payout_attributes` | `object` | No | Payout specific attributes. |
| `legal_country_code` | `string` | No | The [two-character ISO 3166-1 code](https://docs.corsair.dev/docs/api/reference/country-codes/) that identifies the country or region.Note: The country code for Great Britain is GB and not UK as used in the top-level domain names for that country. Use the `C2` country code for China worldwide for comparable uncontrolled price (CUP) method, bank card, and cross-border transactions. |

> [accordion] individual\_owners full type
>
> ```ts theme={null}
> ((
>   {
>     names?: {
>       prefix?: string,
>       given_name?: string,
>       surname?: string,
>       middle_name?: string,
>       suffix?: string,
>       full_name?: string,
>       type: LEGAL
>     }[],
>     citizenship?: string,
>     addresses?: {
>       address_line_1?: string,
>       address_line_2?: string,
>       address_line_3?: string,
>       admin_area_4?: string,
>       admin_area_3?: string,
>       admin_area_2?: string,
>       admin_area_1?: string,
>       postal_code?: string,
>       country_code: string,
>       address_details?: {
>         street_number?: string,
>         street_name?: string,
>         street_type?: string,
>         delivery_service?: string,
>         building_name?: string,
>         sub_building?: string
>       },
>       type: HOME
>     }[],
>     phones?: {
>       country_code: string,
>       national_number: string,
>       extension_number?: string,
>       type: FAX | HOME | MOBILE | OTHER | PAGER
>     }[],
>     birth_details?: {
>       date_of_birth: string
>     },
>     documents?: ((
>       {
>         labels?: string[],
>         name?: string,
>         identification_number?: string,
>         issue_date?: string,
>         expiry_date?: string,
>         issuing_country_code?: string,
>         files?: {
>           id?: string,
>           reference_url?: string,
>           content_type?: string,
>           create_time?: string,
>           size?: string
>         }[],
>         links?: {
>           href: string,
>           rel: string,
>           method?: GET | POST | PUT | DELETE | HEAD | CONNECT | OPTIONS | PATCH
>         }[]
>       }& {
>         type?: SOCIAL_SECURITY_NUMBER | EMPLOYMENT_IDENTIFICATION_NUMBER | TAX_IDENTIFICATION_NUMBER | PASSPORT_NUMBER | PENSION_FUND_ID | MEDICAL_INSURANCE_ID | CNPJ | CPF | PAN | NATIONAL_ID_CARD
>       }
>     )& any)[]
>   }& {
>     type?: PRIMARY
>   }
> )& any)[]
> ```

> [accordion] business\_entity full type
>
> ```ts theme={null}
> ((
>   {
>     business_type?: {
>       type?: ANY_OTHER_BUSINESS_ENTITY | ASSOCIATION | CORPORATION | GENERAL_PARTNERSHIP | GOVERNMENT | INDIVIDUAL | LIMITED_LIABILITY_PARTNERSHIP | LIMITED_LIABILITY_PROPRIETORS | LIMITED_LIABILITY_PRIVATE_CORPORATION | LIMITED_PARTNERSHIP | LIMITED_PARTNERSHIP_PRIVATE_CORPORATION | NONPROFIT | ONLY_BUY_OR_SEND_MONEY | OTHER_CORPORATE_BODY | PARTNERSHIP | PRIVATE_PARTNERSHIP | PROPRIETORSHIP | PROPRIETORSHIP_CRAFTSMAN | PROPRIETORY_COMPANY | PRIVATE_CORPORATION | PUBLIC_COMPANY | PUBLIC_CORPORATION | PUBLIC_PARTNERSHIP | REGISTERED_COOPERATIVE,
>       subtype?: ASSO_TYPE_INCORPORATED | ASSO_TYPE_NON_INCORPORATED | GOVT_TYPE_ENTITY | GOVT_TYPE_EMANATION | GOVT_TYPE_ESTD_COMM | GOVT_TYPE_ESTD_FC | GOVT_TYPE_ESTD_ST_TR
>     },
>     business_industry?: {
>       category: string,
>       mcc_code: string,
>       subcategory: string
>     },
>     business_incorporation?: {
>       incorporation_country_code?: string,
>       incorporation_date?: string
>     },
>     names?: {
>       business_name?: string,
>       type: DOING_BUSINESS_AS | LEGAL_NAME
>     }[],
>     emails?: {
>       type: CUSTOMER_SERVICE,
>       email: string
>     }[],
>     website?: string,
>     addresses?: {
>       address_line_1?: string,
>       address_line_2?: string,
>       address_line_3?: string,
>       admin_area_4?: string,
>       admin_area_3?: string,
>       admin_area_2?: string,
>       admin_area_1?: string,
>       postal_code?: string,
>       country_code: string,
>       address_details?: {
>         street_number?: string,
>         street_name?: string,
>         street_type?: string,
>         delivery_service?: string,
>         building_name?: string,
>         sub_building?: string
>       },
>       type: WORK
>     }[],
>     phones?: {
>       country_code: string,
>       national_number: string,
>       extension_number?: string,
>       type: CUSTOMER_SERVICE | BUSINESS
>     }[],
>     documents?: ((
>       {
>         labels?: string[],
>         name?: string,
>         identification_number?: string,
>         issue_date?: string,
>         expiry_date?: string,
>         issuing_country_code?: string,
>         files?: {
>           id?: string,
>           reference_url?: string,
>           content_type?: string,
>           create_time?: string,
>           size?: string
>         }[],
>         links?: {
>           href: string,
>           rel: string,
>           method?: GET | POST | PUT | DELETE | HEAD | CONNECT | OPTIONS | PATCH
>         }[]
>       }& {
>         type?: SOCIAL_SECURITY_NUMBER | EMPLOYMENT_IDENTIFICATION_NUMBER | TAX_IDENTIFICATION_NUMBER | PASSPORT_NUMBER | PENSION_FUND_ID | MEDICAL_INSURANCE_ID | CNPJ | CPF | PAN | BUSINESS_REGISTRATION
>       }
>     )& any)[]
>   }& any
> )& {
>   beneficial_owners?: {
>     individual_beneficial_owners?: ((
>       {
>         names?: {
>           prefix?: string,
>           given_name?: string,
>           surname?: string,
>           middle_name?: string,
>           suffix?: string,
>           full_name?: string,
>           type: LEGAL
>         }[],
>         citizenship?: string,
>         addresses?: {
>           address_line_1?: string,
>           address_line_2?: string,
>           address_line_3?: string,
>           admin_area_4?: string,
>           admin_area_3?: string,
>           admin_area_2?: string,
>           admin_area_1?: string,
>           postal_code?: string,
>           country_code: string,
>           address_details?: {
>             street_number?: string,
>             street_name?: string,
>             street_type?: string,
>             delivery_service?: string,
>             building_name?: string,
>             sub_building?: string
>           },
>           type: HOME
>         }[],
>         phones?: {
>           country_code: string,
>           national_number: string,
>           extension_number?: string,
>           type: FAX | HOME | MOBILE | OTHER | PAGER
>         }[],
>         birth_details?: {
>           date_of_birth: string
>         },
>         documents?: ((
>           {
>             labels?: string[],
>             name?: string,
>             identification_number?: string,
>             issue_date?: string,
>             expiry_date?: string,
>             issuing_country_code?: string,
>             files?: {
>               id?: string,
>               reference_url?: string,
>               content_type?: string,
>               create_time?: string,
>               size?: string
>             }[],
>             links?: {
>               href: string,
>               rel: string,
>               method?: GET | POST | PUT | DELETE | HEAD | CONNECT | OPTIONS | PATCH
>             }[]
>           }& {
>             type?: SOCIAL_SECURITY_NUMBER | EMPLOYMENT_IDENTIFICATION_NUMBER | TAX_IDENTIFICATION_NUMBER | PASSPORT_NUMBER | PENSION_FUND_ID | MEDICAL_INSURANCE_ID | CNPJ | CPF | PAN | NATIONAL_ID_CARD
>           }
>         )& any)[]
>       }& {
>         percentage_of_ownership?: string
>       }
>     )& any)[],
>     business_beneficial_owners?: ((
>       {
>         business_type?: {
>           type?: ANY_OTHER_BUSINESS_ENTITY | ASSOCIATION | CORPORATION | GENERAL_PARTNERSHIP | GOVERNMENT | INDIVIDUAL | LIMITED_LIABILITY_PARTNERSHIP | LIMITED_LIABILITY_PROPRIETORS | LIMITED_LIABILITY_PRIVATE_CORPORATION | LIMITED_PARTNERSHIP | LIMITED_PARTNERSHIP_PRIVATE_CORPORATION | NONPROFIT | ONLY_BUY_OR_SEND_MONEY | OTHER_CORPORATE_BODY | PARTNERSHIP | PRIVATE_PARTNERSHIP | PROPRIETORSHIP | PROPRIETORSHIP_CRAFTSMAN | PROPRIETORY_COMPANY | PRIVATE_CORPORATION | PUBLIC_COMPANY | PUBLIC_CORPORATION | PUBLIC_PARTNERSHIP | REGISTERED_COOPERATIVE,
>           subtype?: ASSO_TYPE_INCORPORATED | ASSO_TYPE_NON_INCORPORATED | GOVT_TYPE_ENTITY | GOVT_TYPE_EMANATION | GOVT_TYPE_ESTD_COMM | GOVT_TYPE_ESTD_FC | GOVT_TYPE_ESTD_ST_TR
>         },
>         business_industry?: {
>           category: string,
>           mcc_code: string,
>           subcategory: string
>         },
>         business_incorporation?: {
>           incorporation_country_code?: string,
>           incorporation_date?: string
>         },
>         names?: {
>           business_name?: string,
>           type: DOING_BUSINESS_AS | LEGAL_NAME
>         }[],
>         emails?: {
>           type: CUSTOMER_SERVICE,
>           email: string
>         }[],
>         website?: string,
>         addresses?: {
>           address_line_1?: string,
>           address_line_2?: string,
>           address_line_3?: string,
>           admin_area_4?: string,
>           admin_area_3?: string,
>           admin_area_2?: string,
>           admin_area_1?: string,
>           postal_code?: string,
>           country_code: string,
>           address_details?: {
>             street_number?: string,
>             street_name?: string,
>             street_type?: string,
>             delivery_service?: string,
>             building_name?: string,
>             sub_building?: string
>           },
>           type: WORK
>         }[],
>         phones?: {
>           country_code: string,
>           national_number: string,
>           extension_number?: string,
>           type: CUSTOMER_SERVICE | BUSINESS
>         }[],
>         documents?: ((
>           {
>             labels?: string[],
>             name?: string,
>             identification_number?: string,
>             issue_date?: string,
>             expiry_date?: string,
>             issuing_country_code?: string,
>             files?: {
>               id?: string,
>               reference_url?: string,
>               content_type?: string,
>               create_time?: string,
>               size?: string
>             }[],
>             links?: {
>               href: string,
>               rel: string,
>               method?: GET | POST | PUT | DELETE | HEAD | CONNECT | OPTIONS | PATCH
>             }[]
>           }& {
>             type?: SOCIAL_SECURITY_NUMBER | EMPLOYMENT_IDENTIFICATION_NUMBER | TAX_IDENTIFICATION_NUMBER | PASSPORT_NUMBER | PENSION_FUND_ID | MEDICAL_INSURANCE_ID | CNPJ | CPF | PAN | BUSINESS_REGISTRATION
>           }
>         )& any)[]
>       }& {
>         percentage_of_ownership?: string
>       }
>     )& any)[]
>   },
>   annual_sales_volume_range?: {
>     minimum_amount?: {
>       currency_code: string,
>       value: string
>     },
>     maximum_amount?: {
>       currency_code: string,
>       value: string
>     }
>   },
>   average_monthly_volume_range?: {
>     minimum_amount?: {
>       currency_code: string,
>       value: string
>     },
>     maximum_amount?: {
>       currency_code: string,
>       value: string
>     }
>   },
>   purpose_code?: any,
>   business_description?: string
> })& any
> ```

> [accordion] partner\_config\_override full type
>
> ```ts theme={null}
> {
>   return_url?: string,
>   return_url_description?: string,
>   show_add_credit_card?: boolean
> }
> ```

> [accordion] financial\_instruments full type
>
> ```ts theme={null}
> {
>   banks?: {
>     nick_name?: string,
>     account_number: string,
>     account_type: CHECKING | SAVINGS,
>     currency_code?: string,
>     identifiers?: {
>       type?: BANK_CODE | BI_CODE | BRANCH_CODE | ROUTING_NUMBER_1 | ROUTING_NUMBER_2 | ROUTING_NUMBER_3 | SWIFT_CODE | INTERMEDIARY_SWIFT_CODE | BBAN | BBAN_ENCRYPTED | BBAN_HMAC | AGGREGATOR_YODLEE,
>       value?: string
>     }[],
>     branch_location?: {
>       address_line_1?: string,
>       address_line_2?: string,
>       admin_area_2?: string,
>       admin_area_1?: string,
>       postal_code?: string,
>       country_code: string
>     },
>     mandate?: {
>       accepted: boolean
>     }
>   }[]
> }
> ```

> [accordion] operations full type
>
> ```ts theme={null}
> {
>   operation: API_INTEGRATION | BANK_ADDITION | BILLING_AGREEMENT | CONTEXTUAL_MARKETING_CONSENT | OFFLINE_ONBOARDING | SALESFORCE_REFERRAL,
>   api_integration_preference?: {
>     classic_api_integration?: {
>     },
>     rest_api_integration?: {
>       integration_method?: BRAINTREE | PAYPAL | SDK,
>       integration_type: FIRST_PARTY | THIRD_PARTY,
>       first_party_details?: {
>         features: (PAYOUTS | PAYMENT | REFUND | FUTURE_PAYMENT | DIRECT_PAYMENT | PARTNER_FEE | DELAY_FUNDS_DISBURSEMENT | READ_SELLER_DISPUTE | UPDATE_SELLER_DISPUTE | ADVANCED_TRANSACTIONS_SEARCH | SWEEP_FUNDS_EXTERNAL_SINK | ACCESS_MERCHANT_INFORMATION | TRACKING_SHIPMENT_READWRITE | INVOICE_READ_WRITE | DISPUTE_READ_BUYER | UPDATE_CUSTOMER_DISPUTES | VAULT | BILLING_AGREEMENT | WITHDRAWALS | LINKED_FINANCIAL_INSTRUMENTS | USER_PROFILE | TRANSACTION_RISK_DATA | PAYPAL_BALANCE | EXCHANGE_CURRENCY)[],
>         seller_nonce: string
>       },
>       third_party_details?: {
>         features?: (PAYOUTS | PAYMENT | REFUND | FUTURE_PAYMENT | DIRECT_PAYMENT | PARTNER_FEE | DELAY_FUNDS_DISBURSEMENT | READ_SELLER_DISPUTE | UPDATE_SELLER_DISPUTE | ADVANCED_TRANSACTIONS_SEARCH | SWEEP_FUNDS_EXTERNAL_SINK | ACCESS_MERCHANT_INFORMATION | TRACKING_SHIPMENT_READWRITE | INVOICE_READ_WRITE | DISPUTE_READ_BUYER | UPDATE_CUSTOMER_DISPUTES | VAULT | BILLING_AGREEMENT | WITHDRAWALS | LINKED_FINANCIAL_INSTRUMENTS | USER_PROFILE | TRANSACTION_RISK_DATA | PAYPAL_BALANCE | EXCHANGE_CURRENCY)[],
>         signup_mode?: VERIFY_WITH_PAYPAL,
>         organization?: string
>       }
>     }
>   },
>   offline_onboarding_preference?: {
>   },
>   billing_agreement?: {
>     description?: string,
>     billing_experience_preference?: {
>       experience_id?: string,
>       billing_context_set?: boolean
>     },
>     merchant_custom_data?: string,
>     approval_url?: string,
>     ec_token?: string
>   }
> }[]
> ```

> [accordion] legal\_consents full type
>
> ```ts theme={null}
> {
>   type: SHARE_DATA_CONSENT,
>   granted: boolean
> }[]
> ```

> [accordion] payout\_attributes full type
>
> ```ts theme={null}
> {
>   marketplace?: boolean,
>   kyc_required?: boolean,
>   country_transfer_method_currency_selection?: {
>     country?: string,
>     transfer_methods?: {
>       transfer_method_type?: BANK_ACCOUNT | PAYPAL | VENMO | WIRE_ACCOUNT,
>       currencies?: string[]
>     }[]
>   }[]
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/overview/#hateoas-links). |

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### get

`partnerReferrals.get`

Show referral data

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.partnerReferrals.get({ partner_referral_id: 'ZjcyODU4ZWYtYTA1OC00ODIwLTk2M2EtOTZkZWQ4NmQwYzI3' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `partner_referral_id` | `string` | Yes | The ID of the partner-referrals data for which to show details. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `partner_referral_id` | `string \| null` | No | The ID to access the customer's data shared by the partner with PayPal. |
| `submitter_payer_id` | `string \| null` | No | The payer ID of the partner who shared the referral data. |
| `submitter_client_id` | `string \| null` | No | The client ID of the partner who shared the referral data. This cliend ID will be returned only when the caller is determined as an internal partner, which means the scope of the caller's security context only have "[https://uri.paypal.com/services/customer/partner-referrals](https://uri.paypal.com/services/customer/partner-referrals)", For more information, see Api Actor type in Typhoon service. |
| `referral_data` | `object \| null` | No | The customer's referral data that partners share with PayPal. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/overview/#hateoas-links). |

> [accordion] referral\_data full type
>
> ```ts theme={null}
> {
>   individual_owners?: ((
>     {
>       id?: string | null,
>       names?: {
>         prefix?: string | null,
>         given_name?: string | null,
>         surname?: string | null,
>         middle_name?: string | null,
>         suffix?: string | null,
>         full_name?: string | null,
>         type?: string | null
>       }[] | null,
>       citizenship?: string | null,
>       addresses?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null,
>         type?: string | null
>       }[] | null,
>       phones?: {
>         country_code?: string | null,
>         national_number?: string | null,
>         extension_number?: string | null,
>         type?: string | null
>       }[] | null,
>       birth_details?: {
>         date_of_birth?: string | null
>       } | null,
>       documents?: ((
>         {
>           id?: string | null,
>           labels?: string[] | null,
>           name?: string | null,
>           identification_number?: string | null,
>           issue_date?: string | null,
>           expiry_date?: string | null,
>           issuing_country_code?: string | null,
>           files?: {
>             id?: string | null,
>             reference_url?: string | null,
>             content_type?: string | null,
>             create_time?: string | null,
>             size?: string | null
>           }[] | null,
>           links?: {
>             href?: string | null,
>             rel?: string | null,
>             method?: string | null
>           }[] | null
>         }& {
>           type?: string | null
>         }
>       )& any)[] | null
>     }& {
>       type?: string | null
>     }
>   )& any)[] | null,
>   business_entity?: ((
>     {
>       business_type?: {
>         type?: string | null,
>         subtype?: string | null
>       } | null,
>       business_industry?: {
>         category?: string | null,
>         mcc_code?: string | null,
>         subcategory?: string | null
>       } | null,
>       business_incorporation?: {
>         incorporation_country_code?: string | null,
>         incorporation_date?: string | null
>       } | null,
>       names?: {
>         business_name?: string | null,
>         type?: string | null
>       }[] | null,
>       emails?: {
>         type?: string | null,
>         email?: string | null
>       }[] | null,
>       website?: string | null,
>       addresses?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         address_line_3?: string | null,
>         admin_area_4?: string | null,
>         admin_area_3?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         address_details?: {
>           street_number?: string | null,
>           street_name?: string | null,
>           street_type?: string | null,
>           delivery_service?: string | null,
>           building_name?: string | null,
>           sub_building?: string | null
>         } | null,
>         type?: string | null
>       }[] | null,
>       phones?: {
>         country_code?: string | null,
>         national_number?: string | null,
>         extension_number?: string | null,
>         type?: string | null
>       }[] | null,
>       documents?: ((
>         {
>           id?: string | null,
>           labels?: string[] | null,
>           name?: string | null,
>           identification_number?: string | null,
>           issue_date?: string | null,
>           expiry_date?: string | null,
>           issuing_country_code?: string | null,
>           files?: {
>             id?: string | null,
>             reference_url?: string | null,
>             content_type?: string | null,
>             create_time?: string | null,
>             size?: string | null
>           }[] | null,
>           links?: {
>             href?: string | null,
>             rel?: string | null,
>             method?: string | null
>           }[] | null
>         }& {
>           type?: string | null
>         }
>       )& any)[] | null
>     }& any
>   )& {
>     beneficial_owners?: {
>       individual_beneficial_owners?: ((
>         {
>           id?: string | null,
>           names?: {
>             prefix?: string | null,
>             given_name?: string | null,
>             surname?: string | null,
>             middle_name?: string | null,
>             suffix?: string | null,
>             full_name?: string | null,
>             type?: string | null
>           }[] | null,
>           citizenship?: string | null,
>           addresses?: {
>             address_line_1?: string | null,
>             address_line_2?: string | null,
>             address_line_3?: string | null,
>             admin_area_4?: string | null,
>             admin_area_3?: string | null,
>             admin_area_2?: string | null,
>             admin_area_1?: string | null,
>             postal_code?: string | null,
>             country_code?: string | null,
>             address_details?: {
>               street_number?: string | null,
>               street_name?: string | null,
>               street_type?: string | null,
>               delivery_service?: string | null,
>               building_name?: string | null,
>               sub_building?: string | null
>             } | null,
>             type?: string | null
>           }[] | null,
>           phones?: {
>             country_code?: string | null,
>             national_number?: string | null,
>             extension_number?: string | null,
>             type?: string | null
>           }[] | null,
>           birth_details?: {
>             date_of_birth?: string | null
>           } | null,
>           documents?: ((
>             {
>               id?: string | null,
>               labels?: string[] | null,
>               name?: string | null,
>               identification_number?: string | null,
>               issue_date?: string | null,
>               expiry_date?: string | null,
>               issuing_country_code?: string | null,
>               files?: {
>                 id?: string | null,
>                 reference_url?: string | null,
>                 content_type?: string | null,
>                 create_time?: string | null,
>                 size?: string | null
>               }[] | null,
>               links?: {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null
>               }[] | null
>             }& {
>               type?: string | null
>             }
>           )& any)[] | null
>         }& {
>           percentage_of_ownership?: string | null
>         }
>       )& any)[] | null,
>       business_beneficial_owners?: ((
>         {
>           business_type?: {
>             type?: string | null,
>             subtype?: string | null
>           } | null,
>           business_industry?: {
>             category?: string | null,
>             mcc_code?: string | null,
>             subcategory?: string | null
>           } | null,
>           business_incorporation?: {
>             incorporation_country_code?: string | null,
>             incorporation_date?: string | null
>           } | null,
>           names?: {
>             business_name?: string | null,
>             type?: string | null
>           }[] | null,
>           emails?: {
>             type?: string | null,
>             email?: string | null
>           }[] | null,
>           website?: string | null,
>           addresses?: {
>             address_line_1?: string | null,
>             address_line_2?: string | null,
>             address_line_3?: string | null,
>             admin_area_4?: string | null,
>             admin_area_3?: string | null,
>             admin_area_2?: string | null,
>             admin_area_1?: string | null,
>             postal_code?: string | null,
>             country_code?: string | null,
>             address_details?: {
>               street_number?: string | null,
>               street_name?: string | null,
>               street_type?: string | null,
>               delivery_service?: string | null,
>               building_name?: string | null,
>               sub_building?: string | null
>             } | null,
>             type?: string | null
>           }[] | null,
>           phones?: {
>             country_code?: string | null,
>             national_number?: string | null,
>             extension_number?: string | null,
>             type?: string | null
>           }[] | null,
>           documents?: ((
>             {
>               id?: string | null,
>               labels?: string[] | null,
>               name?: string | null,
>               identification_number?: string | null,
>               issue_date?: string | null,
>               expiry_date?: string | null,
>               issuing_country_code?: string | null,
>               files?: {
>                 id?: string | null,
>                 reference_url?: string | null,
>                 content_type?: string | null,
>                 create_time?: string | null,
>                 size?: string | null
>               }[] | null,
>               links?: {
>                 href?: string | null,
>                 rel?: string | null,
>                 method?: string | null
>               }[] | null
>             }& {
>               type?: string | null
>             }
>           )& any)[] | null
>         }& {
>           percentage_of_ownership?: string | null
>         }
>       )& any)[] | null
>     } | null,
>     annual_sales_volume_range?: {
>       minimum_amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       maximum_amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null
>     } | null,
>     average_monthly_volume_range?: {
>       minimum_amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       maximum_amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null
>     } | null,
>     purpose_code?: any | null,
>     business_description?: string | null
>   })& any | null,
>   email?: string | null,
>   preferred_language_code?: string | null,
>   tracking_id?: string | null,
>   partner_config_override?: {
>     return_url?: string | null,
>     return_url_description?: string | null,
>     show_add_credit_card?: boolean | null
>   } | null,
>   financial_instruments?: {
>     banks?: {
>       nick_name?: string | null,
>       account_number?: string | null,
>       account_type?: string | null,
>       currency_code?: string | null,
>       identifiers?: {
>         type?: string | null,
>         value?: string | null
>       }[] | null,
>       branch_location?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null
>       } | null,
>       mandate?: {
>         accepted?: boolean | null
>       } | null
>     }[] | null
>   } | null,
>   operations?: {
>     operation?: string | null,
>     api_integration_preference?: {
>       classic_api_integration?: {
>       } | null,
>       rest_api_integration?: {
>         integration_method?: string | null,
>         integration_type?: string | null,
>         first_party_details?: {
>           features?: string[] | null,
>           seller_nonce?: string | null
>         } | null,
>         third_party_details?: {
>           features?: string[] | null,
>           signup_mode?: string | null,
>           organization?: string | null
>         } | null
>       } | null
>     } | null,
>     offline_onboarding_preference?: {
>     } | null,
>     billing_agreement?: {
>       description?: string | null,
>       billing_experience_preference?: {
>         experience_id?: string | null,
>         billing_context_set?: boolean | null
>       } | null,
>       merchant_custom_data?: string | null,
>       approval_url?: string | null,
>       ec_token?: string | null
>     } | null
>   }[] | null,
>   products?: string[] | null,
>   capabilities?: string[] | null,
>   outside_process_dependencies?: any[] | null,
>   legal_consents?: {
>     type?: string | null,
>     granted?: boolean | null
>   }[] | null,
>   payout_attributes?: {
>     marketplace?: boolean | null,
>     kyc_required?: boolean | null,
>     country_transfer_method_currency_selection?: {
>       country?: string | null,
>       transfer_methods?: {
>         transfer_method_type?: string | null,
>         currencies?: string[] | null
>       }[] | null
>     }[] | null
>   } | null,
>   legal_country_code?: string | null
> } | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

## Payments

### authorizations.capture

`payments.authorizations.capture`

Capture an authorized payment, in full or for an amount

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.payments.authorizations.capture({ authorization_id: '0VF52814937998046' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `authorization_id` | `string` | Yes | The PayPal-generated ID for the authorized payment to capture. |
| `paypal_request_id` | `string` | No | A unique ID identifying the request header for idempotency purposes. |
| `prefer` | `string` | No | The preferred server response upon successful completion of the request. Value is:return=minimal. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the id, status and HATEOAS links.return=representation. The server returns a complete resource representation, including the current state of the resource. |
| `paypal_auth_assertion` | `string` | No | Header for an API client-provided JWT assertion that identifies the merchant. Establishing the consent to act-on-behalf of a merchant is a prerequisite for using this header. |
| `invoice_id` | `string` | No | The API caller-provided external invoice number for this order. Appears in both the payer's transaction history and the emails that the payer receives. |
| `note_to_payer` | `string` | No | An informational note about this settlement. Appears in both the payer's transaction history and the emails that the payer receives. |
| `amount` | `object` | No | — |
| `final_capture` | `boolean` | No | Indicates whether you can make additional captures against the authorized payment. Set to `true` if you do not intend to capture additional payments against the authorization. Set to `false` if you intend to capture additional payments against the authorization. |
| `payment_instruction` | `object` | No | — |
| `soft_descriptor` | `string` | No | The payment descriptor on the payer's account statement. |

> [accordion] amount full type
>
> ```ts theme={null}
> {
>   currency_code: string,
>   value: string
> }& any
> ```

> [accordion] payment\_instruction full type
>
> ```ts theme={null}
> {
>   platform_fees?: (
>     {
>       amount: {
>         currency_code: string,
>         value: string
>       }& any,
>       payee?: {
>         email_address?: string & any,
>         merchant_id?: string & any
>       }& any
>     }& any
>   )[],
>   disbursement_mode?: (INSTANT | DELAYED)& any,
>   payee_pricing_tier_id?: string,
>   payee_receivable_fx_rate_id?: string
> }& any
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `status` | `string \| null` | No | The status of the captured payment. |
| `status_details` | `object \| null` | No | — |
| `id` | `string \| null` | No | The PayPal-generated ID for the captured payment. |
| `amount` | `object \| null` | No | — |
| `invoice_id` | `string \| null` | No | The API caller-provided external invoice number for this order. Appears in both the payer's transaction history and the emails that the payer receives. |
| `custom_id` | `string \| null` | No | The API caller-provided external ID. Used to reconcile API caller-initiated transactions with PayPal transactions. Appears in transaction and settlement reports. |
| `network_transaction_reference` | `object \| null` | No | — |
| `seller_protection` | `object \| null` | No | — |
| `final_capture` | `boolean \| null` | No | Indicates whether you can make additional captures against the authorized payment. Set to `true` if you do not intend to capture additional payments against the authorization. Set to `false` if you intend to capture additional payments against the authorization. |
| `seller_receivable_breakdown` | `object \| null` | No | — |
| `disbursement_mode` | `string \| null` | No | The funds that are held on behalf of the merchant. |
| `links` | `object[] \| null` | No | An array of related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |
| `processor_response` | `object \| null` | No | — |
| `create_time` | `string & any \| null` | No | — |
| `update_time` | `string & any \| null` | No | — |
| `supplementary_data` | `object \| null` | No | — |
| `payee` | `object \| null` | No | — |

> [accordion] status\_details full type
>
> ```ts theme={null}
> {
>   reason?: string | null
> }& any | null
> ```

> [accordion] amount full type
>
> ```ts theme={null}
> {
>   currency_code?: string | null,
>   value?: string | null,
>   breakdown?: {
>     item_total?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null,
>     shipping?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null,
>     handling?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null,
>     tax_total?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null,
>     insurance?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null,
>     shipping_discount?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null,
>     discount?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null
>   } | null
> }& any | null
> ```

> [accordion] network\_transaction\_reference full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   date?: string | null,
>   network?: string & any | null,
>   acquirer_reference_number?: string | null
> } | null
> ```

> [accordion] seller\_protection full type
>
> ```ts theme={null}
> {
>   status?: string | null,
>   dispute_categories?: string[] | null
> }& any | null
> ```

> [accordion] seller\_receivable\_breakdown full type
>
> ```ts theme={null}
> {
>   gross_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   }& any | null,
>   paypal_fee?: {
>     currency_code?: string | null,
>     value?: string | null
>   }& any | null,
>   paypal_fee_in_receivable_currency?: {
>     currency_code?: string | null,
>     value?: string | null
>   }& any | null,
>   net_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   }& any | null,
>   receivable_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   }& any | null,
>   exchange_rate?: {
>     source_currency?: string & any | null,
>     target_currency?: string & any | null,
>     value?: string | null
>   }& any | null,
>   platform_fees?: (
>     {
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       }& any | null,
>       payee?: {
>         email_address?: string & any | null,
>         merchant_id?: string & any | null
>       }& any | null
>     }& any
>   )[] | null
> }& any | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> (
>   {
>     href?: string | null,
>     rel?: string | null,
>     method?: string | null,
>     title?: string | null,
>     mediaType?: string | null,
>     encType?: string | null,
>     schema?: {
>       additionalItems?: {
>       } | null,
>       dependencies?: {
>       } | null,
>       items?: {
>       } | null,
>       definitions?: {
>       } | null,
>       patternProperties?: {
>       } | null,
>       properties?: {
>       } | null,
>       allOf?: {
>       }[] | null,
>       anyOf?: {
>       }[] | null,
>       oneOf?: {
>       }[] | null,
>       not?: {
>       } | null,
>       links?: {
>       }[] | null,
>       fragmentResolution?: string | null,
>       media?: {
>         type?: string | null,
>         binaryEncoding?: string | null
>       } | null,
>       pathStart?: string | null
>     }& any | null,
>     targetSchema?: {
>       additionalItems?: {
>       } | null,
>       dependencies?: {
>       } | null,
>       items?: {
>       } | null,
>       definitions?: {
>       } | null,
>       patternProperties?: {
>       } | null,
>       properties?: {
>       } | null,
>       allOf?: {
>       }[] | null,
>       anyOf?: {
>       }[] | null,
>       oneOf?: {
>       }[] | null,
>       not?: {
>       } | null,
>       links?: {
>       }[] | null,
>       fragmentResolution?: string | null,
>       media?: {
>         type?: string | null,
>         binaryEncoding?: string | null
>       } | null,
>       pathStart?: string | null
>     }& any | null
>   }& any
> )[] | null
> ```

> [accordion] processor\_response full type
>
> ```ts theme={null}
> {
>   avs_code?: string | null,
>   cvv_code?: string | null,
>   response_code?: string | null,
>   payment_advice_code?: string | null
> }& any | null
> ```

> [accordion] supplementary\_data full type
>
> ```ts theme={null}
> {
>   related_ids?: {
>     order_id?: string | null,
>     authorization_id?: string | null,
>     capture_id?: string | null
>   }& any | null
> }& any | null
> ```

> [accordion] payee full type
>
> ```ts theme={null}
> {
>   email_address?: string & any | null,
>   merchant_id?: string & any | null
> }& any | null
> ```

***

### authorizations.get

`payments.authorizations.get`

Show details for authorized payment

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.payments.authorizations.get({ authorization_id: '0VF52814937998046' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `authorization_id` | `string` | Yes | The ID of the authorized payment for which to show details. |
| `paypal_auth_assertion` | `string` | No | Header for an API client-provided JWT assertion that identifies the merchant. Establishing the consent to act-on-behalf of a merchant is a prerequisite for using this header. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `status` | `string \| null` | No | The status for the authorized payment. |
| `status_details` | `object \| null` | No | — |
| `id` | `string \| null` | No | The PayPal-generated ID for the authorized payment. |
| `amount` | `object \| null` | No | — |
| `invoice_id` | `string \| null` | No | The API caller-provided external invoice number for this order. Appears in both the payer's transaction history and the emails that the payer receives. |
| `custom_id` | `string \| null` | No | The API caller-provided external ID. Used to reconcile API caller-initiated transactions with PayPal transactions. Appears in transaction and settlement reports. |
| `network_transaction_reference` | `object \| null` | No | — |
| `seller_protection` | `object \| null` | No | — |
| `expiration_time` | `string & any \| null` | No | — |
| `links` | `object[] \| null` | No | An array of related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |
| `create_time` | `string & any \| null` | No | — |
| `update_time` | `string & any \| null` | No | — |
| `supplementary_data` | `object \| null` | No | — |
| `payee` | `object \| null` | No | — |

> [accordion] status\_details full type
>
> ```ts theme={null}
> {
>   reason?: string | null
> }& any | null
> ```

> [accordion] amount full type
>
> ```ts theme={null}
> {
>   currency_code?: string | null,
>   value?: string | null,
>   breakdown?: {
>     item_total?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null,
>     shipping?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null,
>     handling?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null,
>     tax_total?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null,
>     insurance?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null,
>     shipping_discount?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null,
>     discount?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null
>   } | null
> }& any | null
> ```

> [accordion] network\_transaction\_reference full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   date?: string | null,
>   network?: string & any | null,
>   acquirer_reference_number?: string | null
> } | null
> ```

> [accordion] seller\_protection full type
>
> ```ts theme={null}
> {
>   status?: string | null,
>   dispute_categories?: string[] | null
> }& any | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> (
>   {
>     href?: string | null,
>     rel?: string | null,
>     method?: string | null,
>     title?: string | null,
>     mediaType?: string | null,
>     encType?: string | null,
>     schema?: {
>       additionalItems?: {
>       } | null,
>       dependencies?: {
>       } | null,
>       items?: {
>       } | null,
>       definitions?: {
>       } | null,
>       patternProperties?: {
>       } | null,
>       properties?: {
>       } | null,
>       allOf?: {
>       }[] | null,
>       anyOf?: {
>       }[] | null,
>       oneOf?: {
>       }[] | null,
>       not?: {
>       } | null,
>       links?: {
>       }[] | null,
>       fragmentResolution?: string | null,
>       media?: {
>         type?: string | null,
>         binaryEncoding?: string | null
>       } | null,
>       pathStart?: string | null
>     }& any | null,
>     targetSchema?: {
>       additionalItems?: {
>       } | null,
>       dependencies?: {
>       } | null,
>       items?: {
>       } | null,
>       definitions?: {
>       } | null,
>       patternProperties?: {
>       } | null,
>       properties?: {
>       } | null,
>       allOf?: {
>       }[] | null,
>       anyOf?: {
>       }[] | null,
>       oneOf?: {
>       }[] | null,
>       not?: {
>       } | null,
>       links?: {
>       }[] | null,
>       fragmentResolution?: string | null,
>       media?: {
>         type?: string | null,
>         binaryEncoding?: string | null
>       } | null,
>       pathStart?: string | null
>     }& any | null
>   }& any
> )[] | null
> ```

> [accordion] supplementary\_data full type
>
> ```ts theme={null}
> {
>   related_ids?: {
>     order_id?: string | null,
>     authorization_id?: string | null,
>     capture_id?: string | null
>   }& any | null
> }& any | null
> ```

> [accordion] payee full type
>
> ```ts theme={null}
> {
>   email_address?: string & any | null,
>   merchant_id?: string & any | null
> }& any | null
> ```

***

### authorizations.reauthorize

`payments.authorizations.reauthorize`

Reauthorize authorized payment

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.payments.authorizations.reauthorize({ authorization_id: '0VF52814937998046' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `authorization_id` | `string` | Yes | The PayPal-generated ID for the authorized payment to reauthorize. |
| `paypal_request_id` | `string` | No | A unique ID identifying the request header for idempotency purposes. |
| `prefer` | `string` | No | The preferred server response upon successful completion of the request. Value is:return=minimal. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the id, status and HATEOAS links.return=representation. The server returns a complete resource representation, including the current state of the resource. |
| `paypal_auth_assertion` | `string` | No | Header for an API client-provided JWT assertion that identifies the merchant. Establishing the consent to act-on-behalf of a merchant is a prerequisite for using this header. |
| `amount` | `object` | No | — |

> [accordion] amount full type
>
> ```ts theme={null}
> {
>   currency_code: string,
>   value: string
> }& any
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `status` | `string \| null` | No | The status for the authorized payment. |
| `status_details` | `object \| null` | No | — |
| `id` | `string \| null` | No | The PayPal-generated ID for the authorized payment. |
| `amount` | `object \| null` | No | — |
| `invoice_id` | `string \| null` | No | The API caller-provided external invoice number for this order. Appears in both the payer's transaction history and the emails that the payer receives. |
| `custom_id` | `string \| null` | No | The API caller-provided external ID. Used to reconcile API caller-initiated transactions with PayPal transactions. Appears in transaction and settlement reports. |
| `network_transaction_reference` | `object \| null` | No | — |
| `seller_protection` | `object \| null` | No | — |
| `expiration_time` | `string & any \| null` | No | — |
| `links` | `object[] \| null` | No | An array of related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |
| `create_time` | `string & any \| null` | No | — |
| `update_time` | `string & any \| null` | No | — |
| `supplementary_data` | `object \| null` | No | — |
| `payee` | `object \| null` | No | — |

> [accordion] status\_details full type
>
> ```ts theme={null}
> {
>   reason?: string | null
> }& any | null
> ```

> [accordion] amount full type
>
> ```ts theme={null}
> {
>   currency_code?: string | null,
>   value?: string | null,
>   breakdown?: {
>     item_total?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null,
>     shipping?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null,
>     handling?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null,
>     tax_total?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null,
>     insurance?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null,
>     shipping_discount?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null,
>     discount?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null
>   } | null
> }& any | null
> ```

> [accordion] network\_transaction\_reference full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   date?: string | null,
>   network?: string & any | null,
>   acquirer_reference_number?: string | null
> } | null
> ```

> [accordion] seller\_protection full type
>
> ```ts theme={null}
> {
>   status?: string | null,
>   dispute_categories?: string[] | null
> }& any | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> (
>   {
>     href?: string | null,
>     rel?: string | null,
>     method?: string | null,
>     title?: string | null,
>     mediaType?: string | null,
>     encType?: string | null,
>     schema?: {
>       additionalItems?: {
>       } | null,
>       dependencies?: {
>       } | null,
>       items?: {
>       } | null,
>       definitions?: {
>       } | null,
>       patternProperties?: {
>       } | null,
>       properties?: {
>       } | null,
>       allOf?: {
>       }[] | null,
>       anyOf?: {
>       }[] | null,
>       oneOf?: {
>       }[] | null,
>       not?: {
>       } | null,
>       links?: {
>       }[] | null,
>       fragmentResolution?: string | null,
>       media?: {
>         type?: string | null,
>         binaryEncoding?: string | null
>       } | null,
>       pathStart?: string | null
>     }& any | null,
>     targetSchema?: {
>       additionalItems?: {
>       } | null,
>       dependencies?: {
>       } | null,
>       items?: {
>       } | null,
>       definitions?: {
>       } | null,
>       patternProperties?: {
>       } | null,
>       properties?: {
>       } | null,
>       allOf?: {
>       }[] | null,
>       anyOf?: {
>       }[] | null,
>       oneOf?: {
>       }[] | null,
>       not?: {
>       } | null,
>       links?: {
>       }[] | null,
>       fragmentResolution?: string | null,
>       media?: {
>         type?: string | null,
>         binaryEncoding?: string | null
>       } | null,
>       pathStart?: string | null
>     }& any | null
>   }& any
> )[] | null
> ```

> [accordion] supplementary\_data full type
>
> ```ts theme={null}
> {
>   related_ids?: {
>     order_id?: string | null,
>     authorization_id?: string | null,
>     capture_id?: string | null
>   }& any | null
> }& any | null
> ```

> [accordion] payee full type
>
> ```ts theme={null}
> {
>   email_address?: string & any | null,
>   merchant_id?: string & any | null
> }& any | null
> ```

***

### authorizations.void

`payments.authorizations.void`

Void an authorization so it can no longer be captured

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.payments.authorizations.void({ authorization_id: '0VF52814937998046' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `authorization_id` | `string` | Yes | The PayPal-generated ID for the authorized payment to void. |
| `paypal_auth_assertion` | `string` | No | Header for an API client-provided JWT assertion that identifies the merchant. Establishing the consent to act-on-behalf of a merchant is a prerequisite for using this header. |
| `paypal_request_id` | `string` | No | A unique ID identifying the request header for idempotency purposes. |
| `prefer` | `string` | No | The preferred server response upon successful completion of the request. Value is:return=minimal. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the id, status and HATEOAS links.return=representation. The server returns a complete resource representation, including the current state of the resource. |

**Output:** `object`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   status?: string | null,
>   status_details?: {
>     reason?: string | null
>   }& any | null,
>   id?: string | null,
>   amount?: {
>     currency_code?: string | null,
>     value?: string | null,
>     breakdown?: {
>       item_total?: {
>         currency_code?: string | null,
>         value?: string | null
>       }& any | null,
>       shipping?: {
>         currency_code?: string | null,
>         value?: string | null
>       }& any | null,
>       handling?: {
>         currency_code?: string | null,
>         value?: string | null
>       }& any | null,
>       tax_total?: {
>         currency_code?: string | null,
>         value?: string | null
>       }& any | null,
>       insurance?: {
>         currency_code?: string | null,
>         value?: string | null
>       }& any | null,
>       shipping_discount?: {
>         currency_code?: string | null,
>         value?: string | null
>       }& any | null,
>       discount?: {
>         currency_code?: string | null,
>         value?: string | null
>       }& any | null
>     } | null
>   }& any | null,
>   invoice_id?: string | null,
>   custom_id?: string | null,
>   network_transaction_reference?: {
>     id?: string | null,
>     date?: string | null,
>     network?: string & any | null,
>     acquirer_reference_number?: string | null
>   } | null,
>   seller_protection?: {
>     status?: string | null,
>     dispute_categories?: string[] | null
>   }& any | null,
>   expiration_time?: string & any | null,
>   links?: (
>     {
>       href?: string | null,
>       rel?: string | null,
>       method?: string | null,
>       title?: string | null,
>       mediaType?: string | null,
>       encType?: string | null,
>       schema?: {
>         additionalItems?: {
>         } | null,
>         dependencies?: {
>         } | null,
>         items?: {
>         } | null,
>         definitions?: {
>         } | null,
>         patternProperties?: {
>         } | null,
>         properties?: {
>         } | null,
>         allOf?: {
>         }[] | null,
>         anyOf?: {
>         }[] | null,
>         oneOf?: {
>         }[] | null,
>         not?: {
>         } | null,
>         links?: {
>         }[] | null,
>         fragmentResolution?: string | null,
>         media?: {
>           type?: string | null,
>           binaryEncoding?: string | null
>         } | null,
>         pathStart?: string | null
>       }& any | null,
>       targetSchema?: {
>         additionalItems?: {
>         } | null,
>         dependencies?: {
>         } | null,
>         items?: {
>         } | null,
>         definitions?: {
>         } | null,
>         patternProperties?: {
>         } | null,
>         properties?: {
>         } | null,
>         allOf?: {
>         }[] | null,
>         anyOf?: {
>         }[] | null,
>         oneOf?: {
>         }[] | null,
>         not?: {
>         } | null,
>         links?: {
>         }[] | null,
>         fragmentResolution?: string | null,
>         media?: {
>           type?: string | null,
>           binaryEncoding?: string | null
>         } | null,
>         pathStart?: string | null
>       }& any | null
>     }& any
>   )[] | null,
>   create_time?: string & any | null,
>   update_time?: string & any | null,
>   supplementary_data?: {
>     related_ids?: {
>       order_id?: string | null,
>       authorization_id?: string | null,
>       capture_id?: string | null
>     }& any | null
>   }& any | null,
>   payee?: {
>     email_address?: string & any | null,
>     merchant_id?: string & any | null
>   }& any | null
> } | {
>   success: true
> }
> ```

***

### captures.get

`payments.captures.get`

Show captured payment details

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.payments.captures.get({ capture_id: '2GG279541U471931P' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `capture_id` | `string` | Yes | The PayPal-generated ID for the captured payment for which to show details. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `status` | `string \| null` | No | The status of the captured payment. |
| `status_details` | `object \| null` | No | — |
| `id` | `string \| null` | No | The PayPal-generated ID for the captured payment. |
| `amount` | `object \| null` | No | — |
| `invoice_id` | `string \| null` | No | The API caller-provided external invoice number for this order. Appears in both the payer's transaction history and the emails that the payer receives. |
| `custom_id` | `string \| null` | No | The API caller-provided external ID. Used to reconcile API caller-initiated transactions with PayPal transactions. Appears in transaction and settlement reports. |
| `network_transaction_reference` | `object \| null` | No | — |
| `seller_protection` | `object \| null` | No | — |
| `final_capture` | `boolean \| null` | No | Indicates whether you can make additional captures against the authorized payment. Set to `true` if you do not intend to capture additional payments against the authorization. Set to `false` if you intend to capture additional payments against the authorization. |
| `seller_receivable_breakdown` | `object \| null` | No | — |
| `disbursement_mode` | `string \| null` | No | The funds that are held on behalf of the merchant. |
| `links` | `object[] \| null` | No | An array of related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |
| `processor_response` | `object \| null` | No | — |
| `create_time` | `string & any \| null` | No | — |
| `update_time` | `string & any \| null` | No | — |
| `supplementary_data` | `object \| null` | No | — |
| `payee` | `object \| null` | No | — |

> [accordion] status\_details full type
>
> ```ts theme={null}
> {
>   reason?: string | null
> }& any | null
> ```

> [accordion] amount full type
>
> ```ts theme={null}
> {
>   currency_code?: string | null,
>   value?: string | null,
>   breakdown?: {
>     item_total?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null,
>     shipping?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null,
>     handling?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null,
>     tax_total?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null,
>     insurance?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null,
>     shipping_discount?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null,
>     discount?: {
>       currency_code?: string | null,
>       value?: string | null
>     }& any | null
>   } | null
> }& any | null
> ```

> [accordion] network\_transaction\_reference full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   date?: string | null,
>   network?: string & any | null,
>   acquirer_reference_number?: string | null
> } | null
> ```

> [accordion] seller\_protection full type
>
> ```ts theme={null}
> {
>   status?: string | null,
>   dispute_categories?: string[] | null
> }& any | null
> ```

> [accordion] seller\_receivable\_breakdown full type
>
> ```ts theme={null}
> {
>   gross_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   }& any | null,
>   paypal_fee?: {
>     currency_code?: string | null,
>     value?: string | null
>   }& any | null,
>   paypal_fee_in_receivable_currency?: {
>     currency_code?: string | null,
>     value?: string | null
>   }& any | null,
>   net_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   }& any | null,
>   receivable_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   }& any | null,
>   exchange_rate?: {
>     source_currency?: string & any | null,
>     target_currency?: string & any | null,
>     value?: string | null
>   }& any | null,
>   platform_fees?: (
>     {
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       }& any | null,
>       payee?: {
>         email_address?: string & any | null,
>         merchant_id?: string & any | null
>       }& any | null
>     }& any
>   )[] | null
> }& any | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> (
>   {
>     href?: string | null,
>     rel?: string | null,
>     method?: string | null,
>     title?: string | null,
>     mediaType?: string | null,
>     encType?: string | null,
>     schema?: {
>       additionalItems?: {
>       } | null,
>       dependencies?: {
>       } | null,
>       items?: {
>       } | null,
>       definitions?: {
>       } | null,
>       patternProperties?: {
>       } | null,
>       properties?: {
>       } | null,
>       allOf?: {
>       }[] | null,
>       anyOf?: {
>       }[] | null,
>       oneOf?: {
>       }[] | null,
>       not?: {
>       } | null,
>       links?: {
>       }[] | null,
>       fragmentResolution?: string | null,
>       media?: {
>         type?: string | null,
>         binaryEncoding?: string | null
>       } | null,
>       pathStart?: string | null
>     }& any | null,
>     targetSchema?: {
>       additionalItems?: {
>       } | null,
>       dependencies?: {
>       } | null,
>       items?: {
>       } | null,
>       definitions?: {
>       } | null,
>       patternProperties?: {
>       } | null,
>       properties?: {
>       } | null,
>       allOf?: {
>       }[] | null,
>       anyOf?: {
>       }[] | null,
>       oneOf?: {
>       }[] | null,
>       not?: {
>       } | null,
>       links?: {
>       }[] | null,
>       fragmentResolution?: string | null,
>       media?: {
>         type?: string | null,
>         binaryEncoding?: string | null
>       } | null,
>       pathStart?: string | null
>     }& any | null
>   }& any
> )[] | null
> ```

> [accordion] processor\_response full type
>
> ```ts theme={null}
> {
>   avs_code?: string | null,
>   cvv_code?: string | null,
>   response_code?: string | null,
>   payment_advice_code?: string | null
> }& any | null
> ```

> [accordion] supplementary\_data full type
>
> ```ts theme={null}
> {
>   related_ids?: {
>     order_id?: string | null,
>     authorization_id?: string | null,
>     capture_id?: string | null
>   }& any | null
> }& any | null
> ```

> [accordion] payee full type
>
> ```ts theme={null}
> {
>   email_address?: string & any | null,
>   merchant_id?: string & any | null
> }& any | null
> ```

***

### captures.refund

`payments.captures.refund`

Refund a captured payment, in full or for an amount: the money goes back to the buyer

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.payments.captures.refund({
	capture_id: '2GG279541U471931P',
	amount: { currency_code: 'USD', value: '10.00' },
	note_to_payer: 'Partial refund for a late delivery',
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `capture_id` | `string` | Yes | The PayPal-generated ID for the captured payment to refund. |
| `paypal_request_id` | `string` | No | A unique ID identifying the request header for idempotency purposes. |
| `prefer` | `string` | No | The preferred server response upon successful completion of the request. Value is:return=minimal. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the id, status and HATEOAS links.return=representation. The server returns a complete resource representation, including the current state of the resource. |
| `paypal_auth_assertion` | `string` | No | Header for an API client-provided JWT assertion that identifies the merchant. Establishing the consent to act-on-behalf of a merchant is a prerequisite for using this header. |
| `amount` | `object` | No | — |
| `custom_id` | `string` | No | The API caller-provided external ID. Used to reconcile API caller-initiated transactions with PayPal transactions. Appears in transaction and settlement reports. The pattern is defined by an external party and supports Unicode. |
| `invoice_id` | `string` | No | The API caller-provided external invoice ID for this order. The pattern is defined by an external party and supports Unicode. |
| `note_to_payer` | `string` | No | The reason for the refund. Appears in both the payer's transaction history and the emails that the payer receives. The pattern is defined by an external party and supports Unicode. |
| `payment_instruction` | `object` | No | — |

> [accordion] amount full type
>
> ```ts theme={null}
> {
>   currency_code: string,
>   value: string
> }& any
> ```

> [accordion] payment\_instruction full type
>
> ```ts theme={null}
> {
>   platform_fees?: (
>     {
>       amount: {
>         currency_code: string,
>         value: string
>       }& any,
>       payee?: {
>         email_address?: string & any,
>         merchant_id?: string & any
>       }& any
>     }& any
>   )[]
> }& any
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `status` | `string \| null` | No | The status of the refund. |
| `status_details` | `object \| null` | No | — |
| `id` | `string \| null` | No | The PayPal-generated ID for the refund. |
| `amount` | `object \| null` | No | — |
| `invoice_id` | `string \| null` | No | The API caller-provided external invoice number for this order. Appears in both the payer's transaction history and the emails that the payer receives. |
| `custom_id` | `string \| null` | No | The API caller-provided external ID. Used to reconcile API caller-initiated transactions with PayPal transactions. Appears in transaction and settlement reports. |
| `acquirer_reference_number` | `string \| null` | No | Reference ID issued for the card transaction. This ID can be used to track the transaction across processors, card brands and issuing banks. |
| `note_to_payer` | `string \| null` | No | The reason for the refund. Appears in both the payer's transaction history and the emails that the payer receives. |
| `seller_payable_breakdown` | `object \| null` | No | The breakdown of the refund. |
| `payer` | `object \| null` | No | — |
| `links` | `object[] \| null` | No | An array of related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |
| `create_time` | `string & any \| null` | No | — |
| `update_time` | `string & any \| null` | No | — |

> [accordion] status\_details full type
>
> ```ts theme={null}
> {
>   reason?: string | null
> }& any | null
> ```

> [accordion] amount full type
>
> ```ts theme={null}
> {
>   currency_code?: string | null,
>   value?: string | null
> }& any | null
> ```

> [accordion] seller\_payable\_breakdown full type
>
> ```ts theme={null}
> {
>   gross_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   }& any | null,
>   paypal_fee?: {
>     currency_code?: string | null,
>     value?: string | null
>   }& any | null,
>   paypal_fee_in_receivable_currency?: {
>     currency_code?: string | null,
>     value?: string | null
>   }& any | null,
>   net_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   }& any | null,
>   net_amount_in_receivable_currency?: {
>     currency_code?: string | null,
>     value?: string | null
>   }& any | null,
>   platform_fees?: (
>     {
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       }& any | null,
>       payee?: {
>         email_address?: string & any | null,
>         merchant_id?: string & any | null
>       }& any | null
>     }& any
>   )[] | null,
>   net_amount_breakdown?: (
>     {
>       payable_amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       }& any | null,
>       converted_amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       }& any | null,
>       exchange_rate?: {
>         source_currency?: string & any | null,
>         target_currency?: string & any | null,
>         value?: string | null
>       }& any | null
>     }& any
>   )[] | null,
>   total_refunded_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   }& any | null
> } | null
> ```

> [accordion] payer full type
>
> ```ts theme={null}
> {
>   email_address?: string & any | null,
>   merchant_id?: string & any | null
> }& any | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> (
>   {
>     href?: string | null,
>     rel?: string | null,
>     method?: string | null,
>     title?: string | null,
>     mediaType?: string | null,
>     encType?: string | null,
>     schema?: {
>       additionalItems?: {
>       } | null,
>       dependencies?: {
>       } | null,
>       items?: {
>       } | null,
>       definitions?: {
>       } | null,
>       patternProperties?: {
>       } | null,
>       properties?: {
>       } | null,
>       allOf?: {
>       }[] | null,
>       anyOf?: {
>       }[] | null,
>       oneOf?: {
>       }[] | null,
>       not?: {
>       } | null,
>       links?: {
>       }[] | null,
>       fragmentResolution?: string | null,
>       media?: {
>         type?: string | null,
>         binaryEncoding?: string | null
>       } | null,
>       pathStart?: string | null
>     }& any | null,
>     targetSchema?: {
>       additionalItems?: {
>       } | null,
>       dependencies?: {
>       } | null,
>       items?: {
>       } | null,
>       definitions?: {
>       } | null,
>       patternProperties?: {
>       } | null,
>       properties?: {
>       } | null,
>       allOf?: {
>       }[] | null,
>       anyOf?: {
>       }[] | null,
>       oneOf?: {
>       }[] | null,
>       not?: {
>       } | null,
>       links?: {
>       }[] | null,
>       fragmentResolution?: string | null,
>       media?: {
>         type?: string | null,
>         binaryEncoding?: string | null
>       } | null,
>       pathStart?: string | null
>     }& any | null
>   }& any
> )[] | null
> ```

***

### findEligibleMethods

`payments.findEligibleMethods`

Find a list of eligible payment methods

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.payments.findEligibleMethods({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `paypal_auth_assertion` | `string` | No | Header for an API client-provided JWT assertion that identifies the merchant. Establishing the consent to act-on-behalf of a merchant is a prerequisite for using this header. |
| `user_agent` | `string` | No | Standard headers are generally less restrictive in structure due to historical precedent across browsers, etc. This is a common schema for use in defining most standard headers. |
| `paypal_client_metadata_id` | `string` | No | A Globally Unique Identifier (GUID) value. |
| `customer` | `object` | No | Customer who is making a purchase from the merchant/partner. |
| `purchase_units` | `object[]` | No | Array of purchase units. |
| `preferences` | `object` | No | Preferences of merchant/partner consuming the API. |

> [accordion] customer full type
>
> ```ts theme={null}
> {
>   country_code?: string & any,
>   channel?: {
>     browser_type?: string,
>     client_os?: string,
>     device_type?: string
>   }& any,
>   id?: string,
>   email?: string,
>   phone?: {
>     country_code: string,
>     national_number: string,
>     extension_number?: string
>   }& any
> }
> ```

> [accordion] purchase\_units full type
>
> ```ts theme={null}
> {
>   amount?: {
>     currency_code: string,
>     value: string,
>     breakdown?: {
>       item_total?: {
>         currency_code: string,
>         value: string
>       }& any,
>       shipping?: {
>         currency_code: string,
>         value: string
>       }& any,
>       handling?: {
>         currency_code: string,
>         value: string
>       }& any,
>       tax_total?: {
>         currency_code: string,
>         value: string
>       }& any,
>       insurance?: {
>         currency_code: string,
>         value: string
>       }& any,
>       shipping_discount?: {
>         currency_code: string,
>         value: string
>       }& any,
>       discount?: {
>         currency_code: string,
>         value: string
>       }& any
>     }
>   },
>   payee?: {
>     email_address?: string & any,
>     merchant_id?: string & any
>   }
> }[]
> ```

> [accordion] preferences full type
>
> ```ts theme={null}
> {
>   payment_flow?: ONE_TIME_PAYMENT | RECURRING_PAYMENT | VAULT_WITH_PAYMENT | VAULT_WITHOUT_PAYMENT,
>   include_account_details?: boolean,
>   include_vault_tokens?: boolean,
>   payment_source_constraint?: {
>     constraint_type: INCLUDE | EXCLUDE,
>     payment_sources: (PAYPAL | VENMO | PAYPAL_CREDIT | PAYPAL_PAY_LATER)[]
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `eligible_methods` | `object \| null` | No | — |
| `payment_tokens` | `object[] \| null` | No | Payment tokens for vaulted instruments, if available. This object will be included only if include\_vault\_tokens is set to true in the request. |

> [accordion] eligible\_methods full type
>
> ```ts theme={null}
> {
>   paypal?: {
>     can_be_vaulted?: boolean | null,
>     country_code?: string & any | null,
>     product_code?: string & any | null,
>     eligible_in_paypal_network?: boolean | null,
>     recommended?: boolean | null,
>     recommended_priority?: number | null
>   }& any | null,
>   venmo?: {
>     can_be_vaulted?: boolean | null,
>     country_code?: string & any | null,
>     product_code?: string & any | null,
>     eligible_in_paypal_network?: boolean | null,
>     recommended?: boolean | null,
>     recommended_priority?: number | null
>   }& any | null,
>   paypal_credit?: {
>     can_be_vaulted?: boolean | null,
>     country_code?: string & any | null,
>     product_code?: string & any | null
>   }& any | null,
>   paypal_pay_later?: {
>     can_be_vaulted?: boolean | null,
>     country_code?: string & any | null,
>     product_code?: string & any | null
>   }& any | null
> }& any | null
> ```

> [accordion] payment\_tokens full type
>
> ```ts theme={null}
> (
>   {
>     id?: string | null,
>     payment_source?: {
>       paypal?: {
>         email_address?: string & any | null,
>         payer_id?: string & any | null
>       }& any | null,
>       venmo?: {
>         user_name?: string | null
>       } | null
>     } | null,
>     links?: {
>       href?: string | null,
>       rel?: string | null,
>       method?: string | null,
>       title?: string | null,
>       mediaType?: string | null,
>       encType?: string | null,
>       schema?: {
>         additionalItems?: {
>         } | null,
>         dependencies?: {
>         } | null,
>         items?: {
>         } | null,
>         definitions?: {
>         } | null,
>         patternProperties?: {
>         } | null,
>         properties?: {
>         } | null,
>         allOf?: {
>         }[] | null,
>         anyOf?: {
>         }[] | null,
>         oneOf?: {
>         }[] | null,
>         not?: {
>         } | null,
>         links?: {
>         }[] | null,
>         fragmentResolution?: string | null,
>         media?: {
>           type?: string | null,
>           binaryEncoding?: string | null
>         } | null,
>         pathStart?: string | null
>       }& any | null,
>       targetSchema?: {
>         additionalItems?: {
>         } | null,
>         dependencies?: {
>         } | null,
>         items?: {
>         } | null,
>         definitions?: {
>         } | null,
>         patternProperties?: {
>         } | null,
>         properties?: {
>         } | null,
>         allOf?: {
>         }[] | null,
>         anyOf?: {
>         }[] | null,
>         oneOf?: {
>         }[] | null,
>         not?: {
>         } | null,
>         links?: {
>         }[] | null,
>         fragmentResolution?: string | null,
>         media?: {
>           type?: string | null,
>           binaryEncoding?: string | null
>         } | null,
>         pathStart?: string | null
>       }& any | null
>     }[] | null
>   }& any
> )[] | null
> ```

***

### refunds.get

`payments.refunds.get`

Show refund details

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.payments.refunds.get({ refund_id: '1JU08902781691411' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `refund_id` | `string` | Yes | The PayPal-generated ID for the refund for which to show details. |
| `paypal_auth_assertion` | `string` | No | Header for an API client-provided JWT assertion that identifies the merchant. Establishing the consent to act-on-behalf of a merchant is a prerequisite for using this header. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `status` | `string \| null` | No | The status of the refund. |
| `status_details` | `object \| null` | No | — |
| `id` | `string \| null` | No | The PayPal-generated ID for the refund. |
| `amount` | `object \| null` | No | — |
| `invoice_id` | `string \| null` | No | The API caller-provided external invoice number for this order. Appears in both the payer's transaction history and the emails that the payer receives. |
| `custom_id` | `string \| null` | No | The API caller-provided external ID. Used to reconcile API caller-initiated transactions with PayPal transactions. Appears in transaction and settlement reports. |
| `acquirer_reference_number` | `string \| null` | No | Reference ID issued for the card transaction. This ID can be used to track the transaction across processors, card brands and issuing banks. |
| `note_to_payer` | `string \| null` | No | The reason for the refund. Appears in both the payer's transaction history and the emails that the payer receives. |
| `seller_payable_breakdown` | `object \| null` | No | The breakdown of the refund. |
| `payer` | `object \| null` | No | — |
| `links` | `object[] \| null` | No | An array of related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |
| `create_time` | `string & any \| null` | No | — |
| `update_time` | `string & any \| null` | No | — |

> [accordion] status\_details full type
>
> ```ts theme={null}
> {
>   reason?: string | null
> }& any | null
> ```

> [accordion] amount full type
>
> ```ts theme={null}
> {
>   currency_code?: string | null,
>   value?: string | null
> }& any | null
> ```

> [accordion] seller\_payable\_breakdown full type
>
> ```ts theme={null}
> {
>   gross_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   }& any | null,
>   paypal_fee?: {
>     currency_code?: string | null,
>     value?: string | null
>   }& any | null,
>   paypal_fee_in_receivable_currency?: {
>     currency_code?: string | null,
>     value?: string | null
>   }& any | null,
>   net_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   }& any | null,
>   net_amount_in_receivable_currency?: {
>     currency_code?: string | null,
>     value?: string | null
>   }& any | null,
>   platform_fees?: (
>     {
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       }& any | null,
>       payee?: {
>         email_address?: string & any | null,
>         merchant_id?: string & any | null
>       }& any | null
>     }& any
>   )[] | null,
>   net_amount_breakdown?: (
>     {
>       payable_amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       }& any | null,
>       converted_amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       }& any | null,
>       exchange_rate?: {
>         source_currency?: string & any | null,
>         target_currency?: string & any | null,
>         value?: string | null
>       }& any | null
>     }& any
>   )[] | null,
>   total_refunded_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   }& any | null
> } | null
> ```

> [accordion] payer full type
>
> ```ts theme={null}
> {
>   email_address?: string & any | null,
>   merchant_id?: string & any | null
> }& any | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> (
>   {
>     href?: string | null,
>     rel?: string | null,
>     method?: string | null,
>     title?: string | null,
>     mediaType?: string | null,
>     encType?: string | null,
>     schema?: {
>       additionalItems?: {
>       } | null,
>       dependencies?: {
>       } | null,
>       items?: {
>       } | null,
>       definitions?: {
>       } | null,
>       patternProperties?: {
>       } | null,
>       properties?: {
>       } | null,
>       allOf?: {
>       }[] | null,
>       anyOf?: {
>       }[] | null,
>       oneOf?: {
>       }[] | null,
>       not?: {
>       } | null,
>       links?: {
>       }[] | null,
>       fragmentResolution?: string | null,
>       media?: {
>         type?: string | null,
>         binaryEncoding?: string | null
>       } | null,
>       pathStart?: string | null
>     }& any | null,
>     targetSchema?: {
>       additionalItems?: {
>       } | null,
>       dependencies?: {
>       } | null,
>       items?: {
>       } | null,
>       definitions?: {
>       } | null,
>       patternProperties?: {
>       } | null,
>       properties?: {
>       } | null,
>       allOf?: {
>       }[] | null,
>       anyOf?: {
>       }[] | null,
>       oneOf?: {
>       }[] | null,
>       not?: {
>       } | null,
>       links?: {
>       }[] | null,
>       fragmentResolution?: string | null,
>       media?: {
>         type?: string | null,
>         binaryEncoding?: string | null
>       } | null,
>       pathStart?: string | null
>     }& any | null
>   }& any
> )[] | null
> ```

***

## Payouts

### create

`payouts.create`

Send money to up to 15,000 recipients (email, phone or PayPal id) in one batch payout

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.payouts.create({
	sender_batch_header: { sender_batch_id: 'batch-2026-11-27', email_subject: 'You have a payout' },
	items: [{
		recipient_type: 'EMAIL',
		amount: { value: '5.00', currency: 'USD' },
		receiver: 'ada@example.com',
		note: 'Thanks!',
	}],
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `paypal_request_id` | `string` | No | The server stores keys for 30 days. |
| `sender_batch_header` | `object` | Yes | The sender-provided payout header for a payout request. |
| `items` | `object[]` | Yes | An array of individual payout items. |

> [accordion] sender\_batch\_header full type
>
> ```ts theme={null}
> {
>   sender_batch_id?: string,
>   recipient_type?: string,
>   email_subject?: string,
>   email_message?: string,
>   note?: string
> }
> ```

> [accordion] items full type
>
> ```ts theme={null}
> {
>   recipient_type?: string,
>   amount: {
>     currency: string,
>     value: string
>   },
>   note?: string,
>   receiver: string,
>   sender_item_id?: string,
>   recipient_wallet?: string,
>   alternate_notification_method?: {
>     phone?: {
>       country_code: string,
>       national_number: string,
>       extension_number?: string
>     }
>   },
>   notification_language?: string,
>   application_context?: {
>     social_feed_privacy?: string,
>     holler_url?: string,
>     logo_url?: string
>   },
>   purpose?: AWARDS | PRIZES | DONATIONS | GOODS | SERVICES | REBATES | CASHBACK | DISCOUNTS | NON_GOODS_OR_SERVICES
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `batch_header` | `object \| null` | No | The payout header that is returned in response to a payout header request. Shows details for an entire payout request. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/api/rest/responses/#hateoas-links). |

> [accordion] batch\_header full type
>
> ```ts theme={null}
> {
>   payout_batch_id?: string | null,
>   batch_status?: string | null,
>   time_created?: string | null,
>   sender_batch_header?: {
>     sender_batch_id?: string | null,
>     recipient_type?: string | null,
>     email_subject?: string | null,
>     email_message?: string | null
>   } | null
> } | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### get

`payouts.get`

Show payout batch details

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.payouts.get({ id: '5O190127TN364715T' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the payout for which to show details. |
| `fields` | `string` | No | Shows details for only the specified fields. |
| `page` | `number` | No | A non-zero integer representing the page of the results. |
| `page_size` | `number` | No | The maximum number of results to return at one time. Value is a non-negative, non-zero integer. If the user chooses pagination, the maximum page is `1000`. |
| `total_required` | `boolean` | No | Indicates whether to show the total items and total pages count in the response. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `total_items` | `number \| null` | No | The total number of items in the full result list. |
| `total_pages` | `number \| null` | No | The total number of pages. |
| `batch_header` | `object \| null` | No | The payout header that is returned in response to a payout header request. Shows details for an entire payout request. |
| `items` | `object[] \| null` | No | An array of individual items. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/api/rest/responses/#hateoas-links). |

> [accordion] batch\_header full type
>
> ```ts theme={null}
> {
>   payout_batch_id?: string | null,
>   batch_status?: string | null,
>   time_created?: string | null,
>   time_completed?: string | null,
>   time_closed?: string | null,
>   sender_batch_header?: {
>     sender_batch_id?: string | null,
>     recipient_type?: string | null,
>     email_subject?: string | null,
>     email_message?: string | null
>   } | null,
>   funding_source?: string | null,
>   amount?: {
>     currency?: string | null,
>     value?: string | null
>   } | null,
>   fees?: {
>     currency?: string | null,
>     value?: string | null
>   } | null
> } | null
> ```

> [accordion] items full type
>
> ```ts theme={null}
> {
>   payout_item_id?: string | null,
>   transaction_id?: string | null,
>   activity_id?: string | null,
>   transaction_status?: string | null,
>   payout_item_fee?: {
>     currency?: string | null,
>     value?: string | null
>   } | null,
>   payout_batch_id?: string | null,
>   payout_item?: {
>     recipient_type?: string | null,
>     amount?: {
>       currency?: string | null,
>       value?: string | null
>     } | null,
>     note?: string | null,
>     receiver?: string | null,
>     sender_item_id?: string | null,
>     recipient_name?: {
>       prefix?: string | null,
>       given_name?: string | null,
>       surname?: string | null,
>       middle_name?: string | null,
>       suffix?: string | null,
>       alternate_full_name?: string | null,
>       full_name?: string | null
>     } | null,
>     recipient_wallet?: string | null,
>     purpose?: string | null
>   } | null,
>   currency_conversion?: {
>     from_amount?: {
>       currency?: string | null,
>       value?: string | null
>     } | null,
>     to_amount?: {
>       currency?: string | null,
>       value?: string | null
>     } | null,
>     exchange_rate?: string | null
>   } | null,
>   time_processed?: string | null,
>   errors?: {
>     name?: string | null,
>     message?: string | null,
>     debug_id?: string | null,
>     information_link?: string | null,
>     details?: {
>       field?: string | null,
>       value?: string | null,
>       location?: string | null,
>       issue?: string | null,
>       description?: string | null
>     }[] | null,
>     links?: {
>       href?: string | null,
>       rel?: string | null,
>       method?: string | null
>     }[] | null
>   } | null,
>   links?: {
>     href?: string | null,
>     rel?: string | null,
>     method?: string | null
>   }[] | null
> }[] | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### items.cancel

`payouts.items.cancel`

Cancel unclaimed payout item

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.payouts.items.cancel({ payout_item_id: '8AELMXH8UB2P8' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `payout_item_id` | `string` | Yes | The ID of the payout item to cancel. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `payout_item_id` | `string \| null` | No | The ID for the payout item. Visible when you show details for a payout. |
| `transaction_id` | `string \| null` | No | The PayPal-generated ID for the transaction. |
| `activity_id` | `string \| null` | No | The unique PayPal-generated common ID that links the sender- and receiver-side transactions. Used for tracking. |
| `transaction_status` | `string \| null` | No | The item transaction status.Note: For POST/v1/payments/payouts-item/\{payout\_item\_id}/cancel, the only possible transaction\_status value is RETURNED. |
| `payout_item_fee` | `object \| null` | No | The currency and amount for a financial transaction, such as a balance or payment due. |
| `payout_batch_id` | `string \| null` | No | The PayPal-generated ID for the payout batch. |
| `sender_batch_id` | `string \| null` | No | A sender-specified ID. Tracks the payout in an accounting system. Should be unique within 30 days. |
| `payout_item` | `object \| null` | No | The details for a sender-created payout to a single recipient. |
| `currency_conversion` | `object \| null` | No | The currency conversion resource. |
| `time_processed` | `string \| null` | No | The date and time when this item was last processed, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). |
| `errors` | `object \| null` | No | The error details. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/api/rest/responses/#hateoas-links). |

> [accordion] payout\_item\_fee full type
>
> ```ts theme={null}
> {
>   currency?: string | null,
>   value?: string | null
> } | null
> ```

> [accordion] payout\_item full type
>
> ```ts theme={null}
> {
>   recipient_type?: string | null,
>   amount?: {
>     currency?: string | null,
>     value?: string | null
>   } | null,
>   note?: string | null,
>   receiver?: string | null,
>   sender_item_id?: string | null,
>   recipient_name?: {
>     prefix?: string | null,
>     given_name?: string | null,
>     surname?: string | null,
>     middle_name?: string | null,
>     suffix?: string | null,
>     alternate_full_name?: string | null,
>     full_name?: string | null
>   } | null,
>   recipient_wallet?: string | null,
>   purpose?: string | null
> } | null
> ```

> [accordion] currency\_conversion full type
>
> ```ts theme={null}
> {
>   from_amount?: {
>     currency?: string | null,
>     value?: string | null
>   } | null,
>   to_amount?: {
>     currency?: string | null,
>     value?: string | null
>   } | null,
>   exchange_rate?: string | null
> } | null
> ```

> [accordion] errors full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   message?: string | null,
>   debug_id?: string | null,
>   information_link?: string | null,
>   details?: {
>     field?: string | null,
>     value?: string | null,
>     location?: string | null,
>     issue?: string | null,
>     description?: string | null
>   }[] | null,
>   links?: {
>     href?: string | null,
>     rel?: string | null,
>     method?: string | null
>   }[] | null
> } | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### items.get

`payouts.items.get`

Show payout item details

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.payouts.items.get({ payout_item_id: '8AELMXH8UB2P8' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `payout_item_id` | `string` | Yes | The ID of the payout item to cancel. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `payout_item_id` | `string \| null` | No | The ID for the payout item. Visible when you show details for a payout. |
| `transaction_id` | `string \| null` | No | The PayPal-generated ID for the transaction. |
| `activity_id` | `string \| null` | No | The unique PayPal-generated common ID that links the sender- and receiver-side transactions. Used for tracking. |
| `transaction_status` | `string \| null` | No | The item transaction status.Note: For POST/v1/payments/payouts-item/\{payout\_item\_id}/cancel, the only possible transaction\_status value is RETURNED. |
| `payout_item_fee` | `object \| null` | No | The currency and amount for a financial transaction, such as a balance or payment due. |
| `payout_batch_id` | `string \| null` | No | The PayPal-generated ID for the payout batch. |
| `sender_batch_id` | `string \| null` | No | A sender-specified ID. Tracks the payout in an accounting system. Should be unique within 30 days. |
| `payout_item` | `object \| null` | No | The details for a sender-created payout to a single recipient. |
| `currency_conversion` | `object \| null` | No | The currency conversion resource. |
| `time_processed` | `string \| null` | No | The date and time when this item was last processed, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). |
| `errors` | `object \| null` | No | The error details. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/api/rest/responses/#hateoas-links). |

> [accordion] payout\_item\_fee full type
>
> ```ts theme={null}
> {
>   currency?: string | null,
>   value?: string | null
> } | null
> ```

> [accordion] payout\_item full type
>
> ```ts theme={null}
> {
>   recipient_type?: string | null,
>   amount?: {
>     currency?: string | null,
>     value?: string | null
>   } | null,
>   note?: string | null,
>   receiver?: string | null,
>   sender_item_id?: string | null,
>   recipient_name?: {
>     prefix?: string | null,
>     given_name?: string | null,
>     surname?: string | null,
>     middle_name?: string | null,
>     suffix?: string | null,
>     alternate_full_name?: string | null,
>     full_name?: string | null
>   } | null,
>   recipient_wallet?: string | null,
>   purpose?: string | null
> } | null
> ```

> [accordion] currency\_conversion full type
>
> ```ts theme={null}
> {
>   from_amount?: {
>     currency?: string | null,
>     value?: string | null
>   } | null,
>   to_amount?: {
>     currency?: string | null,
>     value?: string | null
>   } | null,
>   exchange_rate?: string | null
> } | null
> ```

> [accordion] errors full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   message?: string | null,
>   debug_id?: string | null,
>   information_link?: string | null,
>   details?: {
>     field?: string | null,
>     value?: string | null,
>     location?: string | null,
>     issue?: string | null,
>     description?: string | null
>   }[] | null,
>   links?: {
>     href?: string | null,
>     rel?: string | null,
>     method?: string | null
>   }[] | null
> } | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

## Plans

### activate

`plans.activate`

Activate plan

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.plans.activate({ id: '5O190127TN364715T' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the subscription. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | PayPal accepted the call; it answered with no body (204). |

***

### create

`plans.create`

Create plan

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.plans.create({
	name: 'Example',
	billing_cycles: [{
		frequency: { interval_unit: 'DAY' },
		tenure_type: 'REGULAR',
		sequence: 1,
	}],
	payment_preferences: {},
	product_id: 'PROD-XYAB12ABSB7868434',
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `prefer` | `string` | No | The preferred server response upon successful completion of the request. Value is:return=minimal. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the id, status and HATEOAS links.return=representation. The server returns a complete resource representation, including the current state of the resource. |
| `paypal_request_id` | `string` | No | The server stores keys for 72 hours. |
| `product_id` | `string` | Yes | The ID of the product created through Catalog Products API. |
| `name` | `string` | Yes | The plan name. |
| `status` | `CREATED \| INACTIVE \| ACTIVE` | No | The initial state of the plan. Allowed input values are CREATED and ACTIVE. |
| `description` | `string` | No | The detailed description of the plan. |
| `billing_cycles` | `object[]` | Yes | An array of billing cycles for trial billing and regular billing. A plan can have at most two trial cycles and only one regular cycle. |
| `payment_preferences` | `object` | Yes | The payment preferences for a subscription. |
| `taxes` | `object` | No | The tax details. |
| `quantity_supported` | `boolean` | No | Indicates whether you can subscribe to this plan by providing a quantity for the goods or service. |

> [accordion] billing\_cycles full type
>
> ```ts theme={null}
> {
>   pricing_scheme?: {
>     fixed_price?: {
>       currency_code: string,
>       value: string
>     },
>     pricing_model?: VOLUME | TIERED,
>     tiers?: {
>       starting_quantity: string,
>       ending_quantity?: string,
>       amount: {
>         currency_code: string,
>         value: string
>       }
>     }[]
>   },
>   frequency: {
>     interval_unit: DAY | WEEK | MONTH | YEAR,
>     interval_count?: number
>   },
>   tenure_type: REGULAR | TRIAL,
>   sequence: number,
>   total_cycles?: number
> }[]
> ```

> [accordion] payment\_preferences full type
>
> ```ts theme={null}
> {
>   auto_bill_outstanding?: boolean,
>   setup_fee?: {
>     currency_code: string,
>     value: string
>   },
>   setup_fee_failure_action?: CONTINUE | CANCEL,
>   payment_failure_threshold?: number
> }
> ```

> [accordion] taxes full type
>
> ```ts theme={null}
> {
>   percentage: string,
>   inclusive?: boolean
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The unique PayPal-generated ID for the plan. |
| `product_id` | `string \| null` | No | The ID for the product. |
| `name` | `string \| null` | No | The plan name. |
| `status` | `string \| null` | No | The plan status. |
| `description` | `string \| null` | No | The detailed description of the plan. |
| `billing_cycles` | `object[] \| null` | No | An array of billing cycles for trial billing and regular billing. A plan can have at most two trial cycles and only one regular cycle. |
| `payment_preferences` | `object \| null` | No | The payment preferences for a subscription. |
| `taxes` | `object \| null` | No | The tax details. |
| `quantity_supported` | `boolean \| null` | No | Indicates whether you can subscribe to this plan by providing a quantity for the goods or service. |
| `create_time` | `string \| null` | No | The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional.Note: The regular expression provides guidance but does not reject all invalid dates. |
| `update_time` | `string \| null` | No | The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional.Note: The regular expression provides guidance but does not reject all invalid dates. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] billing\_cycles full type
>
> ```ts theme={null}
> {
>   pricing_scheme?: {
>     version?: number | null,
>     fixed_price?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     pricing_model?: string | null,
>     tiers?: {
>       starting_quantity?: string | null,
>       ending_quantity?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null
>     }[] | null,
>     create_time?: string | null,
>     update_time?: string | null
>   } | null,
>   frequency?: {
>     interval_unit?: string | null,
>     interval_count?: number | null
>   } | null,
>   tenure_type?: string | null,
>   sequence?: number | null,
>   total_cycles?: number | null
> }[] | null
> ```

> [accordion] payment\_preferences full type
>
> ```ts theme={null}
> {
>   auto_bill_outstanding?: boolean | null,
>   setup_fee?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   setup_fee_failure_action?: string | null,
>   payment_failure_threshold?: number | null
> } | null
> ```

> [accordion] taxes full type
>
> ```ts theme={null}
> {
>   percentage?: string | null,
>   inclusive?: boolean | null
> } | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### deactivate

`plans.deactivate`

Deactivate plan

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.plans.deactivate({ id: '5O190127TN364715T' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the subscription. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | PayPal accepted the call; it answered with no body (204). |

***

### get

`plans.get`

Show plan details

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.plans.get({ id: '5O190127TN364715T' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the subscription. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The unique PayPal-generated ID for the plan. |
| `product_id` | `string \| null` | No | The ID for the product. |
| `name` | `string \| null` | No | The plan name. |
| `status` | `string \| null` | No | The plan status. |
| `description` | `string \| null` | No | The detailed description of the plan. |
| `billing_cycles` | `object[] \| null` | No | An array of billing cycles for trial billing and regular billing. A plan can have at most two trial cycles and only one regular cycle. |
| `payment_preferences` | `object \| null` | No | The payment preferences for a subscription. |
| `taxes` | `object \| null` | No | The tax details. |
| `quantity_supported` | `boolean \| null` | No | Indicates whether you can subscribe to this plan by providing a quantity for the goods or service. |
| `create_time` | `string \| null` | No | The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional.Note: The regular expression provides guidance but does not reject all invalid dates. |
| `update_time` | `string \| null` | No | The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional.Note: The regular expression provides guidance but does not reject all invalid dates. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] billing\_cycles full type
>
> ```ts theme={null}
> {
>   pricing_scheme?: {
>     version?: number | null,
>     fixed_price?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     pricing_model?: string | null,
>     tiers?: {
>       starting_quantity?: string | null,
>       ending_quantity?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null
>     }[] | null,
>     create_time?: string | null,
>     update_time?: string | null
>   } | null,
>   frequency?: {
>     interval_unit?: string | null,
>     interval_count?: number | null
>   } | null,
>   tenure_type?: string | null,
>   sequence?: number | null,
>   total_cycles?: number | null
> }[] | null
> ```

> [accordion] payment\_preferences full type
>
> ```ts theme={null}
> {
>   auto_bill_outstanding?: boolean | null,
>   setup_fee?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   setup_fee_failure_action?: string | null,
>   payment_failure_threshold?: number | null
> } | null
> ```

> [accordion] taxes full type
>
> ```ts theme={null}
> {
>   percentage?: string | null,
>   inclusive?: boolean | null
> } | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### list

`plans.list`

List plans

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.plans.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `prefer` | `string` | No | The preferred server response upon successful completion of the request. Value is:return=minimal. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the id, status and HATEOAS links.return=representation. The server returns a complete resource representation, including the current state of the resource. |
| `product_id` | `string` | No | Filters the response by a Product ID. |
| `page_size` | `number` | No | The number of items to return in the response. |
| `page` | `number` | No | A non-zero integer which is the start index of the entire list of items to return in the response. The combination of `page=1` and `page_size=20` returns the first 20 items. The combination of `page=2` and `page_size=20` returns the next 20 items. |
| `total_required` | `boolean` | No | Indicates whether to show the total count in the response. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `plans` | `object[] \| null` | No | An array of plans. |
| `total_items` | `number \| null` | No | The total number of items. |
| `total_pages` | `number \| null` | No | The total number of pages. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] plans full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   product_id?: string | null,
>   name?: string | null,
>   status?: string | null,
>   description?: string | null,
>   billing_cycles?: {
>     pricing_scheme?: {
>       version?: number | null,
>       fixed_price?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       pricing_model?: string | null,
>       tiers?: {
>         starting_quantity?: string | null,
>         ending_quantity?: string | null,
>         amount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null
>       }[] | null,
>       create_time?: string | null,
>       update_time?: string | null
>     } | null,
>     frequency?: {
>       interval_unit?: string | null,
>       interval_count?: number | null
>     } | null,
>     tenure_type?: string | null,
>     sequence?: number | null,
>     total_cycles?: number | null
>   }[] | null,
>   payment_preferences?: {
>     auto_bill_outstanding?: boolean | null,
>     setup_fee?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     setup_fee_failure_action?: string | null,
>     payment_failure_threshold?: number | null
>   } | null,
>   taxes?: {
>     percentage?: string | null,
>     inclusive?: boolean | null
>   } | null,
>   quantity_supported?: boolean | null,
>   create_time?: string | null,
>   update_time?: string | null,
>   links?: {
>     href?: string | null,
>     rel?: string | null,
>     method?: string | null
>   }[] | null
> }[] | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### update

`plans.update`

Update plan

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.plans.update({
	id: '5O190127TN364715T',
	patch: [{ op: 'add' }],
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the subscription. |
| `patch` | `object[]` | Yes | An array of JSON patch objects to apply partial updates to resources. |

> [accordion] patch full type
>
> ```ts theme={null}
> {
>   op: add | remove | replace | move | copy | test,
>   path?: string,
>   value?: any,
>   from?: string
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | PayPal accepted the call; it answered with no body (204). |

***

### updatePricing

`plans.updatePricing`

Update pricing

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.plans.updatePricing({
	id: '5O190127TN364715T',
	pricing_schemes: [{
		billing_cycle_sequence: 1,
		pricing_scheme: {},
	}],
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the subscription. |
| `pricing_schemes` | `object[]` | Yes | An array of pricing schemes. |

> [accordion] pricing\_schemes full type
>
> ```ts theme={null}
> {
>   billing_cycle_sequence: number,
>   pricing_scheme: {
>     fixed_price?: {
>       currency_code: string,
>       value: string
>     },
>     pricing_model?: VOLUME | TIERED,
>     tiers?: {
>       starting_quantity: string,
>       ending_quantity?: string,
>       amount: {
>         currency_code: string,
>         value: string
>       }
>     }[]
>   }
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | PayPal accepted the call; it answered with no body (204). |

***

## Products

### create

`products.create`

Create product

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.products.create({ name: 'Corsair Pro', type: 'SERVICE', category: 'SOFTWARE' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `prefer` | `string` | No | The preferred server response upon successful completion of the request. Value is:return=minimal. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the id, status and HATEOAS links.return=representation. The server returns a complete resource representation, including the current state of the resource. |
| `paypal_request_id` | `string` | No | The server stores keys for 72 hours. |
| `id` | `string` | No | The ID of the product. You can specify the SKU for the product. If you omit the ID, the system generates it. System-generated IDs have the `PROD-` prefix. |
| `name` | `string` | Yes | The product name. |
| `description` | `string` | No | The product description. |
| `type` | `PHYSICAL \| DIGITAL \| SERVICE` | Yes | The product type. Indicates whether the product is physical or digital goods, or a service. |
| `category` | `AC_REFRIGERATION_REPAIR \| ACADEMIC_SOFTWARE \| ACCESSORIES \| ACCOUNTING \| ADULT \| ADVERTISING \| AFFILIATED_AUTO_RENTAL \| AGENCIES \| AGGREGATORS \| AGRICULTURAL_COOPERATIVE_FOR_MAIL_ORDER \| AIR_CARRIERS_AIRLINES \| AIRLINES \| AIRPORTS_FLYING_FIELDS \| ALCOHOLIC_BEVERAGES \| AMUSEMENT_PARKS_CARNIVALS \| ANIMATION \| ANTIQUES \| APPLIANCES \| AQUARIAMS_SEAQUARIUMS_DOLPHINARIUMS \| ARCHITECTURAL_ENGINEERING_AND_SURVEYING_SERVICES \| ART_AND_CRAFT_SUPPLIES \| ART_DEALERS_AND_GALLERIES \| ARTIFACTS_GRAVE_RELATED_AND_NATIVE_AMERICAN_CRAFTS \| ARTS_AND_CRAFTS \| ARTS_CRAFTS_AND_COLLECTIBLES \| AUDIO_BOOKS \| AUTO_ASSOCIATIONS_CLUBS \| AUTO_DEALER_USED_ONLY \| AUTO_RENTALS \| AUTO_SERVICE \| AUTOMATED_FUEL_DISPENSERS \| AUTOMOBILE_ASSOCIATIONS \| AUTOMOTIVE \| AUTOMOTIVE_REPAIR_SHOPS_NON_DEALER \| AUTOMOTIVE_TOP_AND_BODY_SHOPS \| AVIATION \| BABIES_CLOTHING_AND_SUPPLIES \| BABY \| BANDS_ORCHESTRAS_ENTERTAINERS \| BARBIES \| BATH_AND_BODY \| BATTERIES \| BEAN_BABIES \| BEAUTY \| BEAUTY_AND_FRAGRANCES \| BED_AND_BATH \| BICYCLE_SHOPS_SALES_AND_SERVICE \| BICYCLES_AND_ACCESSORIES \| BILLIARD_POOL_ESTABLISHMENTS \| BOAT_DEALERS \| BOAT_RENTALS_AND_LEASING \| BOATING_SAILING_AND_ACCESSORIES \| BOOKS \| BOOKS_AND_MAGAZINES \| BOOKS_MANUSCRIPTS \| BOOKS_PERIODICALS_AND_NEWSPAPERS \| BOWLING_ALLEYS \| BULLETIN_BOARD \| BUS_LINE \| BUS_LINES_CHARTERS_TOUR_BUSES \| BUSINESS \| BUSINESS_AND_SECRETARIAL_SCHOOLS \| BUYING_AND_SHOPPING_SERVICES_AND_CLUBS \| CABLE_SATELLITE_AND_OTHER_PAY_TELEVISION_AND_RADIO_SERVICES \| CABLE_SATELLITE_AND_OTHER_PAY_TV_AND_RADIO \| CAMERA_AND_PHOTOGRAPHIC_SUPPLIES \| CAMERAS \| CAMERAS_AND_PHOTOGRAPHY \| CAMPER_RECREATIONAL_AND_UTILITY_TRAILER_DEALERS \| CAMPING_AND_OUTDOORS \| CAMPING_AND_SURVIVAL \| CAR_AND_TRUCK_DEALERS \| CAR_AND_TRUCK_DEALERS_USED_ONLY \| CAR_AUDIO_AND_ELECTRONICS \| CAR_RENTAL_AGENCY \| CATALOG_MERCHANT \| CATALOG_RETAIL_MERCHANT \| CATERING_SERVICES \| CHARITY \| CHECK_CASHIER \| CHILD_CARE_SERVICES \| CHILDREN_BOOKS \| CHIROPODISTS_PODIATRISTS \| CHIROPRACTORS \| CIGAR_STORES_AND_STANDS \| CIVIC_SOCIAL_FRATERNAL_ASSOCIATIONS \| CIVIL_SOCIAL_FRAT_ASSOCIATIONS \| CLOTHING \| CLOTHING_ACCESSORIES_AND_SHOES \| CLOTHING_RENTAL \| COFFEE_AND_TEA \| COIN_OPERATED_BANKS_AND_CASINOS \| COLLECTIBLES \| COLLECTION_AGENCY \| COLLEGES_AND_UNIVERSITIES \| COMMERCIAL_EQUIPMENT \| COMMERCIAL_FOOTWEAR \| COMMERCIAL_PHOTOGRAPHY \| COMMERCIAL_PHOTOGRAPHY_ART_AND_GRAPHICS \| COMMERCIAL_SPORTS_PROFESSIONA \| COMMODITIES_AND_FUTURES_EXCHANGE \| COMPUTER_AND_DATA_PROCESSING_SERVICES \| COMPUTER_HARDWARE_AND_SOFTWARE \| COMPUTER_MAINTENANCE_REPAIR_AND_SERVICES_NOT_ELSEWHERE_CLAS \| CONSTRUCTION \| CONSTRUCTION_MATERIALS_NOT_ELSEWHERE_CLASSIFIED \| CONSULTING_SERVICES \| CONSUMER_CREDIT_REPORTING_AGENCIES \| CONVALESCENT_HOMES \| COSMETIC_STORES \| COUNSELING_SERVICES_DEBT_MARRIAGE_PERSONAL \| COUNTERFEIT_CURRENCY_AND_STAMPS \| COUNTERFEIT_ITEMS \| COUNTRY_CLUBS \| COURIER_SERVICES \| COURIER_SERVICES_AIR_AND_GROUND_AND_FREIGHT_FORWARDERS \| COURT_COSTS_ALIMNY_CHILD_SUPT \| COURT_COSTS_INCLUDING_ALIMONY_AND_CHILD_SUPPORT_COURTS_OF_LAW \| CREDIT_CARDS \| CREDIT_UNION \| CULTURE_AND_RELIGION \| DAIRY_PRODUCTS_STORES \| DANCE_HALLS_STUDIOS_AND_SCHOOLS \| DECORATIVE \| DENTAL \| DENTISTS_AND_ORTHODONTISTS \| DEPARTMENT_STORES \| DESKTOP_PCS \| DEVICES \| DIECAST_TOYS_VEHICLES \| DIGITAL_GAMES \| DIGITAL_MEDIA_BOOKS_MOVIES_MUSIC \| DIRECT_MARKETING \| DIRECT_MARKETING_CATALOG_MERCHANT \| DIRECT_MARKETING_INBOUND_TELE \| DIRECT_MARKETING_OUTBOUND_TELE \| DIRECT_MARKETING_SUBSCRIPTION \| DISCOUNT_STORES \| DOOR_TO_DOOR_SALES \| DRAPERY_WINDOW_COVERING_AND_UPHOLSTERY \| DRINKING_PLACES \| DRUGSTORE \| DURABLE_GOODS \| ECOMMERCE_DEVELOPMENT \| ECOMMERCE_SERVICES \| EDUCATIONAL_AND_TEXTBOOKS \| ELECTRIC_RAZOR_STORES \| ELECTRICAL_AND_SMALL_APPLIANCE_REPAIR \| ELECTRICAL_CONTRACTORS \| ELECTRICAL_PARTS_AND_EQUIPMENT \| ELECTRONIC_CASH \| ELEMENTARY_AND_SECONDARY_SCHOOLS \| EMPLOYMENT \| ENTERTAINERS \| ENTERTAINMENT_AND_MEDIA \| EQUIP_TOOL_FURNITURE_AND_APPLIANCE_RENTAL_AND_LEASING \| ESCROW \| EVENT_AND_WEDDING_PLANNING \| EXERCISE_AND_FITNESS \| EXERCISE_EQUIPMENT \| EXTERMINATING_AND_DISINFECTING_SERVICES \| FABRICS_AND_SEWING \| FAMILY_CLOTHING_STORES \| FASHION_JEWELRY \| FAST_FOOD_RESTAURANTS \| FICTION_AND_NONFICTION \| FINANCE_COMPANY \| FINANCIAL_AND_INVESTMENT_ADVICE \| FINANCIAL_INSTITUTIONS_MERCHANDISE_AND_SERVICES \| FIREARM_ACCESSORIES \| FIREARMS_WEAPONS_AND_KNIVES \| FIREPLACE_AND_FIREPLACE_SCREENS \| FIREWORKS \| FISHING \| FLORISTS \| FLOWERS \| FOOD_DRINK_AND_NUTRITION \| FOOD_PRODUCTS \| FOOD_RETAIL_AND_SERVICE \| FRAGRANCES_AND_PERFUMES \| FREEZER_AND_LOCKER_MEAT_PROVISIONERS \| FUEL_DEALERS_FUEL_OIL_WOOD_AND_COAL \| FUEL_DEALERS_NON_AUTOMOTIVE \| FUNERAL_SERVICES_AND_CREMATORIES \| FURNISHING_AND_DECORATING \| FURNITURE \| FURRIERS_AND_FUR_SHOPS \| GADGETS_AND_OTHER_ELECTRONICS \| GAMBLING \| GAME_SOFTWARE \| GAMES \| GARDEN_SUPPLIES \| GENERAL \| GENERAL_CONTRACTORS \| GENERAL_GOVERNMENT \| GENERAL_SOFTWARE \| GENERAL_TELECOM \| GIFTS_AND_FLOWERS \| GLASS_PAINT_AND_WALLPAPER_STORES \| GLASSWARE_CRYSTAL_STORES \| GOVERNMENT \| GOVERNMENT_IDS_AND_LICENSES \| GOVERNMENT_LICENSED_ON_LINE_CASINOS_ON_LINE_GAMBLING \| GOVERNMENT_OWNED_LOTTERIES \| GOVERNMENT_SERVICES \| GRAPHIC_AND_COMMERCIAL_DESIGN \| GREETING_CARDS \| GROCERY_STORES_AND_SUPERMARKETS \| HARDWARE_AND_TOOLS \| HARDWARE_EQUIPMENT_AND_SUPPLIES \| HAZARDOUS_RESTRICTED_AND_PERISHABLE_ITEMS \| HEALTH_AND_BEAUTY_SPAS \| HEALTH_AND_NUTRITION \| HEALTH_AND_PERSONAL_CARE \| HEARING_AIDS_SALES_AND_SUPPLIES \| HEATING_PLUMBING_AC \| HIGH_RISK_MERCHANT \| HIRING_SERVICES \| HOBBIES_TOYS_AND_GAMES \| HOME_AND_GARDEN \| HOME_AUDIO \| HOME_DECOR \| HOME_ELECTRONICS \| HOSPITALS \| HOTELS_MOTELS_INNS_RESORTS \| HOUSEWARES \| HUMAN_PARTS_AND_REMAINS \| HUMOROUS_GIFTS_AND_NOVELTIES \| HUNTING \| IDS_LICENSES_AND_PASSPORTS \| ILLEGAL_DRUGS_AND_PARAPHERNALIA \| INDUSTRIAL \| INDUSTRIAL_AND_MANUFACTURING_SUPPLIES \| INSURANCE_AUTO_AND_HOME \| INSURANCE_DIRECT \| INSURANCE_LIFE_AND_ANNUITY \| INSURANCE_SALES_UNDERWRITING \| INSURANCE_UNDERWRITING_PREMIUMS \| INTERNET_AND_NETWORK_SERVICES \| INTRA_COMPANY_PURCHASES \| LABORATORIES_DENTAL_MEDICAL \| LANDSCAPING \| LANDSCAPING_AND_HORTICULTURAL_SERVICES \| LAUNDRY_CLEANING_SERVICES \| LEGAL \| LEGAL_SERVICES_AND_ATTORNEYS \| LOCAL_DELIVERY_SERVICE \| LOCKSMITH \| LODGING_AND_ACCOMMODATIONS \| LOTTERY_AND_CONTESTS \| LUGGAGE_AND_LEATHER_GOODS \| LUMBER_AND_BUILDING_MATERIALS \| MAGAZINES \| MAINTENANCE_AND_REPAIR_SERVICES \| MAKEUP_AND_COSMETICS \| MANUAL_CASH_DISBURSEMENTS \| MASSAGE_PARLORS \| MEDICAL \| MEDICAL_AND_PHARMACEUTICAL \| MEDICAL_CARE \| MEDICAL_EQUIPMENT_AND_SUPPLIES \| MEDICAL_SERVICES \| MEETING_PLANNERS \| MEMBERSHIP_CLUBS_AND_ORGANIZATIONS \| MEMBERSHIP_COUNTRY_CLUBS_GOLF \| MEMORABILIA \| MEN_AND_BOY_CLOTHING_AND_ACCESSORY_STORES \| MEN_CLOTHING \| MERCHANDISE \| METAPHYSICAL \| MILITARIA \| MILITARY_AND_CIVIL_SERVICE_UNIFORMS \| MISC._AUTOMOTIVE_AIRCRAFT_AND_FARM_EQUIPMENT_DEALERS \| MISC._GENERAL_MERCHANDISE \| MISCELLANEOUS_GENERAL_SERVICES \| MISCELLANEOUS_REPAIR_SHOPS_AND_RELATED_SERVICES \| MODEL_KITS \| MONEY_TRANSFER_MEMBER_FINANCIAL_INSTITUTION \| MONEY_TRANSFER_MERCHANT \| MOTION_PICTURE_THEATERS \| MOTOR_FREIGHT_CARRIERS_AND_TRUCKING \| MOTOR_HOME_AND_RECREATIONAL_VEHICLE_RENTAL \| MOTOR_HOMES_DEALERS \| MOTOR_VEHICLE_SUPPLIES_AND_NEW_PARTS \| MOTORCYCLE_DEALERS \| MOTORCYCLES \| MOVIE \| MOVIE_TICKETS \| MOVING_AND_STORAGE \| MULTI_LEVEL_MARKETING \| MUSIC_CDS_CASSETTES_AND_ALBUMS \| MUSIC_STORE_INSTRUMENTS_AND_SHEET_MUSIC \| NETWORKING \| NEW_AGE \| NEW_PARTS_AND_SUPPLIES_MOTOR_VEHICLE \| NEWS_DEALERS_AND_NEWSTANDS \| NON_DURABLE_GOODS \| NON_FICTION \| NON_PROFIT_POLITICAL_AND_RELIGION \| NONPROFIT \| NOVELTIES \| OEM_SOFTWARE \| OFFICE_SUPPLIES_AND_EQUIPMENT \| ONLINE_DATING \| ONLINE_GAMING \| ONLINE_GAMING_CURRENCY \| ONLINE_SERVICES \| OOUTBOUND_TELEMARKETING_MERCH \| OPHTHALMOLOGISTS_OPTOMETRIST \| OPTICIANS_AND_DISPENSING \| ORTHOPEDIC_GOODS_PROSTHETICS \| OSTEOPATHS \| OTHER \| PACKAGE_TOUR_OPERATORS \| PAINTBALL \| PAINTS_VARNISHES_AND_SUPPLIES \| PARKING_LOTS_AND_GARAGES \| PARTS_AND_ACCESSORIES \| PAWN_SHOPS \| PAYCHECK_LENDER_OR_CASH_ADVANCE \| PERIPHERALS \| PERSONALIZED_GIFTS \| PET_SHOPS_PET_FOOD_AND_SUPPLIES \| PETROLEUM_AND_PETROLEUM_PRODUCTS \| PETS_AND_ANIMALS \| PHOTOFINISHING_LABORATORIES_PHOTO_DEVELOPING \| PHOTOGRAPHIC_STUDIOS_PORTRAITS \| PHOTOGRAPHY \| PHYSICAL_GOOD \| PICTURE_VIDEO_PRODUCTION \| PIECE_GOODS_NOTIONS_AND_OTHER_DRY_GOODS \| PLANTS_AND_SEEDS \| PLUMBING_AND_HEATING_EQUIPMENTS_AND_SUPPLIES \| POLICE_RELATED_ITEMS \| POLITICAL_ORGANIZATIONS \| POSTAL_SERVICES_GOVERNMENT_ONLY \| POSTERS \| PREPAID_AND_STORED_VALUE_CARDS \| PRESCRIPTION_DRUGS \| PROMOTIONAL_ITEMS \| PUBLIC_WAREHOUSING_AND_STORAGE \| PUBLISHING_AND_PRINTING \| PUBLISHING_SERVICES \| RADAR_DECTORS \| RADIO_TELEVISION_AND_STEREO_REPAIR \| REAL_ESTATE \| REAL_ESTATE_AGENT \| REAL_ESTATE_AGENTS_AND_MANAGERS_RENTALS \| RELIGION_AND_SPIRITUALITY_FOR_PROFIT \| RELIGIOUS \| RELIGIOUS_ORGANIZATIONS \| REMITTANCE \| RENTAL_PROPERTY_MANAGEMENT \| RESIDENTIAL \| RETAIL \| RETAIL_FINE_JEWELRY_AND_WATCHES \| REUPHOLSTERY_AND_FURNITURE_REPAIR \| RINGS \| ROOFING_SIDING_SHEET_METAL \| RUGS_AND_CARPETS \| SCHOOLS_AND_COLLEGES \| SCIENCE_FICTION \| SCRAPBOOKING \| SCULPTURES \| SECURITIES_BROKERS_AND_DEALERS \| SECURITY_AND_SURVEILLANCE \| SECURITY_AND_SURVEILLANCE_EQUIPMENT \| SECURITY_BROKERS_AND_DEALERS \| SEMINARS \| SERVICE_STATIONS \| SERVICES \| SEWING_NEEDLEWORK_FABRIC_AND_PIECE_GOODS_STORES \| SHIPPING_AND_PACKING \| SHOE_REPAIR_HAT_CLEANING \| SHOE_STORES \| SHOES \| SNOWMOBILE_DEALERS \| SOFTWARE \| SPECIALTY_AND_MISC._FOOD_STORES \| SPECIALTY_CLEANING_POLISHING_AND_SANITATION_PREPARATIONS \| SPECIALTY_OR_RARE_PETS \| SPORT_GAMES_AND_TOYS \| SPORTING_AND_RECREATIONAL_CAMPS \| SPORTING_GOODS \| SPORTS_AND_OUTDOORS \| SPORTS_AND_RECREATION \| STAMP_AND_COIN \| STATIONARY_PRINTING_AND_WRITING_PAPER \| STENOGRAPHIC_AND_SECRETARIAL_SUPPORT_SERVICES \| STOCKS_BONDS_SECURITIES_AND_RELATED_CERTIFICATES \| STORED_VALUE_CARDS \| SUPPLIES \| SUPPLIES_AND_TOYS \| SURVEILLANCE_EQUIPMENT \| SWIMMING_POOLS_AND_SPAS \| SWIMMING_POOLS_SALES_SUPPLIES_SERVICES \| TAILORS_AND_ALTERATIONS \| TAX_PAYMENTS \| TAX_PAYMENTS_GOVERNMENT_AGENCIES \| TAXICABS_AND_LIMOUSINES \| TELECOMMUNICATION_SERVICES \| TELEPHONE_CARDS \| TELEPHONE_EQUIPMENT \| TELEPHONE_SERVICES \| THEATER \| TIRE_RETREADING_AND_REPAIR \| TOLL_OR_BRIDGE_FEES \| TOOLS_AND_EQUIPMENT \| TOURIST_ATTRACTIONS_AND_EXHIBITS \| TOWING_SERVICE \| TOYS_AND_GAMES \| TRADE_AND_VOCATIONAL_SCHOOLS \| TRADEMARK_INFRINGEMENT \| TRAILER_PARKS_AND_CAMPGROUNDS \| TRAINING_SERVICES \| TRANSPORTATION_SERVICES \| TRAVEL \| TRUCK_AND_UTILITY_TRAILER_RENTALS \| TRUCK_STOP \| TYPESETTING_PLATE_MAKING_AND_RELATED_SERVICES \| USED_MERCHANDISE_AND_SECONDHAND_STORES \| USED_PARTS_MOTOR_VEHICLE \| UTILITIES \| UTILITIES_ELECTRIC_GAS_WATER_SANITARY \| VARIETY_STORES \| VEHICLE_SALES \| VEHICLE_SERVICE_AND_ACCESSORIES \| VIDEO_EQUIPMENT \| VIDEO_GAME_ARCADES_ESTABLISH \| VIDEO_GAMES_AND_SYSTEMS \| VIDEO_TAPE_RENTAL_STORES \| VINTAGE_AND_COLLECTIBLE_VEHICLES \| VINTAGE_AND_COLLECTIBLES \| VITAMINS_AND_SUPPLEMENTS \| VOCATIONAL_AND_TRADE_SCHOOLS \| WATCH_CLOCK_AND_JEWELRY_REPAIR \| WEB_HOSTING_AND_DESIGN \| WELDING_REPAIR \| WHOLESALE_CLUBS \| WHOLESALE_FLORIST_SUPPLIERS \| WHOLESALE_PRESCRIPTION_DRUGS \| WILDLIFE_PRODUCTS \| WIRE_TRANSFER \| WIRE_TRANSFER_AND_MONEY_ORDER \| WOMEN_ACCESSORY_SPECIALITY \| WOMEN_CLOTHING` | No | The product category. |
| `image_url` | `string` | No | The image URL for the product. |
| `home_url` | `string` | No | The home page URL for the product. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the product. |
| `name` | `string \| null` | No | The product name. |
| `description` | `string \| null` | No | The product description. |
| `type` | `string \| null` | No | The product type. Indicates whether the product is physical or digital goods, or a service. |
| `category` | `string \| null` | No | The product category. |
| `image_url` | `string \| null` | No | The image URL for the product. |
| `home_url` | `string \| null` | No | The home page URL for the product. |
| `create_time` | `string \| null` | No | The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional.Note: The regular expression provides guidance but does not reject all invalid dates. |
| `update_time` | `string \| null` | No | The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional.Note: The regular expression provides guidance but does not reject all invalid dates. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/overview/#hateoas-links). |

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### get

`products.get`

Show product details

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.products.get({ product_id: 'PROD-XYAB12ABSB7868434' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `product_id` | `string` | Yes | The product ID. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the product. |
| `name` | `string \| null` | No | The product name. |
| `description` | `string \| null` | No | The product description. |
| `type` | `string \| null` | No | The product type. Indicates whether the product is physical or digital goods, or a service. |
| `category` | `string \| null` | No | The product category. |
| `image_url` | `string \| null` | No | The image URL for the product. |
| `home_url` | `string \| null` | No | The home page URL for the product. |
| `create_time` | `string \| null` | No | The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional.Note: The regular expression provides guidance but does not reject all invalid dates. |
| `update_time` | `string \| null` | No | The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional.Note: The regular expression provides guidance but does not reject all invalid dates. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/overview/#hateoas-links). |

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### list

`products.list`

List products

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.products.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `page_size` | `number` | No | The number of items to return in the response. |
| `page` | `number` | No | A non-zero integer which is the start index of the entire list of items that are returned in the response. So, the combination of `page=1` and `page_size=20` returns the first 20 items. The combination of `page=2` and `page_size=20` returns the next 20 items. |
| `total_required` | `boolean` | No | Indicates whether to show the total items and total pages in the response. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `products` | `object[] \| null` | No | An array of products. |
| `total_items` | `number \| null` | No | The total number of items. |
| `total_pages` | `number \| null` | No | The total number of pages. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/overview/#hateoas-links). |

> [accordion] products full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   name?: string | null,
>   description?: string | null,
>   create_time?: string | null,
>   links?: {
>     href?: string | null,
>     rel?: string | null,
>     method?: string | null
>   }[] | null
> }[] | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### update

`products.update`

Update product

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.products.update({
	product_id: 'PROD-XYAB12ABSB7868434',
	patch: [{ op: 'add' }],
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `product_id` | `string` | Yes | The product ID. |
| `patch` | `object[]` | Yes | An array of JSON patch objects to apply partial updates to resources. |

> [accordion] patch full type
>
> ```ts theme={null}
> {
>   op: add | remove | replace | move | copy | test,
>   path?: string,
>   value?: number | number | string | boolean | any[] | {
>   } | null,
>   from?: string
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | PayPal accepted the call; it answered with no body (204). |

***

## Subscriptions

### activate

`subscriptions.activate`

Activate subscription

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.subscriptions.activate({ id: '5O190127TN364715T' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the subscription. |
| `reason` | `string` | No | The reason for activation of a subscription. Required to reactivate the subscription. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | PayPal accepted the call; it answered with no body (204). |

***

### cancel

`subscriptions.cancel`

Cancel a subscription: it stops for good

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.subscriptions.cancel({ id: '5O190127TN364715T', reason: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the subscription. |
| `reason` | `string` | Yes | The reason for the cancellation of a subscription. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | PayPal accepted the call; it answered with no body (204). |

***

### capture

`subscriptions.capture`

Capture authorized payment on subscription

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.subscriptions.capture({
	id: '5O190127TN364715T',
	note: 'example',
	capture_type: 'OUTSTANDING_BALANCE',
	amount: { currency_code: 'USD', value: '10.00' },
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `paypal_request_id` | `string` | No | The server stores keys for 72 hours. |
| `id` | `string` | Yes | The ID of the subscription. |
| `note` | `string` | Yes | The reason or note for the subscription charge. |
| `capture_type` | `OUTSTANDING_BALANCE` | Yes | The type of capture. |
| `amount` | `object` | Yes | The currency and amount for a financial transaction, such as a balance or payment due. |

> [accordion] amount full type
>
> ```ts theme={null}
> {
>   currency_code: string,
>   value: string
> }
> ```

**Output:** `object`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   status?: string | null,
>   id?: string | null,
>   amount_with_breakdown?: {
>     gross_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     total_item_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     fee_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     shipping_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     tax_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     net_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null
>   } | null,
>   payer_name?: {
>     prefix?: string | null,
>     given_name?: string | null,
>     surname?: string | null,
>     middle_name?: string | null,
>     suffix?: string | null,
>     full_name?: string | null
>   } | null,
>   payer_email?: string | null,
>   time?: string | null
> } | {
>   success: true
> }
> ```

***

### create

`subscriptions.create`

Create subscription

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.subscriptions.create({ plan_id: 'P-5ML4271244454362WXNWU5NQ' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `prefer` | `string` | No | The preferred server response upon successful completion of the request. Value is:return=minimal. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the id, status and HATEOAS links.return=representation. The server returns a complete resource representation, including the current state of the resource. |
| `paypal_request_id` | `string` | No | The server stores keys for 72 hours. |
| `plan_id` | `string` | Yes | The ID of the plan. |
| `start_time` | `string` | No | The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional.Note: The regular expression provides guidance but does not reject all invalid dates. |
| `quantity` | `string` | No | The quantity of the product in the subscription. |
| `shipping_amount` | `object` | No | The currency and amount for a financial transaction, such as a balance or payment due. |
| `subscriber` | `object` | No | — |
| `auto_renewal` | `boolean` | No | DEPRECATED. Indicates whether the subscription auto-renews after the billing cycles complete. |
| `application_context` | `object` | No | The application context, which customizes the payer experience during the subscription approval process with PayPal. |
| `custom_id` | `string` | No | The custom id for the subscription. Can be invoice id. |
| `plan` | `object` | No | An inline plan object to customise the subscription. You can override plan level default attributes by providing customised values for the subscription in this object. |
| `merchant_inventory` | `any` | No | — |

> [accordion] shipping\_amount full type
>
> ```ts theme={null}
> {
>   currency_code: string,
>   value: string
> }
> ```

> [accordion] subscriber full type
>
> ```ts theme={null}
> {
>   email_address?: string,
>   name?: {
>     given_name?: string,
>     surname?: string
>   },
>   phone?: {
>     phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>     phone_number: {
>       national_number: string
>     }
>   },
>   shipping_address?: {
>     name?: {
>       full_name?: string
>     },
>     type?: SHIPPING | PICKUP_IN_PERSON | PICKUP_IN_STORE | PICKUP_FROM_PERSON,
>     options?: {
>       id: string,
>       label: string,
>       type?: SHIPPING | PICKUP | PICKUP_IN_STORE | PICKUP_FROM_PERSON,
>       amount?: {
>         currency_code: string,
>         value: string
>       },
>       selected: boolean
>     }[],
>     address?: {
>       address_line_1?: string,
>       address_line_2?: string,
>       admin_area_2?: string,
>       admin_area_1?: string,
>       postal_code?: string,
>       country_code: string
>     }
>   },
>   payment_source?: {
>     card?: {
>       name?: string,
>       number?: string,
>       expiry?: string,
>       security_code?: string,
>       type?: CREDIT | DEBIT | PREPAID | STORE | UNKNOWN,
>       brand?: VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | UNKNOWN,
>       billing_address?: {
>         address_line_1?: string,
>         address_line_2?: string,
>         admin_area_2?: string,
>         admin_area_1?: string,
>         postal_code?: string,
>         country_code: string
>       },
>       attributes?: {
>         customer?: {
>           id?: string,
>           email_address?: string,
>           phone?: {
>             phone_type?: FAX | HOME | MOBILE | OTHER | PAGER,
>             phone_number: {
>               national_number: string
>             }
>           }
>         },
>         vault?: {
>           store_in_vault?: ON_SUCCESS
>         },
>         verification?: {
>           method?: SCA_ALWAYS | SCA_WHEN_REQUIRED | 3D_SECURE | AVS_CVV
>         }
>       }
>     }
>   }
> }
> ```

> [accordion] application\_context full type
>
> ```ts theme={null}
> {
>   brand_name?: string,
>   locale?: string,
>   shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>   user_action?: CONTINUE | SUBSCRIBE_NOW,
>   payment_method?: {
>     payee_preferred?: UNRESTRICTED | IMMEDIATE_PAYMENT_REQUIRED
>   },
>   return_url: string,
>   cancel_url: string
> }
> ```

> [accordion] plan full type
>
> ```ts theme={null}
> {
>   billing_cycles?: {
>     pricing_scheme?: {
>       fixed_price?: {
>         currency_code: string,
>         value: string
>       },
>       pricing_model?: VOLUME | TIERED,
>       tiers?: {
>         starting_quantity: string,
>         ending_quantity?: string,
>         amount: {
>           currency_code: string,
>           value: string
>         }
>       }[]
>     },
>     sequence: number,
>     total_cycles?: number
>   }[],
>   payment_preferences?: {
>     auto_bill_outstanding?: boolean,
>     setup_fee?: {
>       currency_code: string,
>       value: string
>     },
>     setup_fee_failure_action?: CONTINUE | CANCEL,
>     payment_failure_threshold?: number
>   },
>   taxes?: {
>     percentage?: string,
>     inclusive?: boolean
>   }
> }
> ```

**Output:** `object`

> [accordion] Output full type
>
> ```ts theme={null}
> ((
>   {
>     status?: string | null,
>     status_change_note?: string | null,
>     status_update_time?: string | null
>   }& any
> )& {
>   id?: string | null,
>   plan_id?: string | null,
>   start_time?: string | null,
>   quantity?: string | null,
>   shipping_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   subscriber?: {
>     email_address?: string | null,
>     payer_id?: string | null,
>     name?: {
>       given_name?: string | null,
>       surname?: string | null
>     } | null,
>     phone?: {
>       phone_type?: string | null,
>       phone_number?: {
>         national_number?: string | null
>       } | null
>     } | null,
>     shipping_address?: {
>       name?: {
>         full_name?: string | null
>       } | null,
>       type?: string | null,
>       options?: {
>         id?: string | null,
>         label?: string | null,
>         type?: string | null,
>         amount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null,
>         selected?: boolean | null
>       }[] | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null
>       } | null
>     } | null,
>     payment_source?: {
>       card?: {
>         name?: string & string | null,
>         last_digits?: string | null,
>         brand?: string | null,
>         available_networks?: string[] | null,
>         type?: string | null,
>         authentication_result?: {
>           liability_shift?: string | null,
>           three_d_secure?: {
>             authentication_status?: string | null,
>             enrollment_status?: string | null
>           } | null
>         } | null,
>         attributes?: {
>           vault?: {
>             id?: string | null,
>             status?: string | null,
>             customer?: {
>               id?: string | null
>             } | null,
>             links?: {
>               href?: string | null,
>               rel?: string | null,
>               method?: string | null
>             }[] | null
>           } | null
>         } | null,
>         from_request?: {
>           expiry?: string | null,
>           last_digits?: string | null
>         } | null,
>         expiry?: string & string | null,
>         bin_details?: {
>           bin?: string | null,
>           issuing_bank?: string | null,
>           bin_country_code?: string | null,
>           products?: string[] | null
>         } | null,
>         billing_address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null
>         } | null,
>         currency_code?: string | null
>       } | null
>     } | null
>   } | null,
>   billing_info?: {
>     outstanding_balance?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     cycle_executions?: {
>       tenure_type?: string | null,
>       sequence?: number | null,
>       cycles_completed?: number | null,
>       cycles_remaining?: number | null,
>       current_pricing_scheme_version?: number | null,
>       total_cycles?: number | null
>     }[] | null,
>     last_payment?: {
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       time?: string | null
>     } | null,
>     next_billing_time?: string | null,
>     final_payment_time?: string | null,
>     failed_payments_count?: number | null,
>     last_failed_payment?: {
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       time?: string | null,
>       reason_code?: string | null,
>       next_payment_retry_time?: string | null
>     } | null
>   } | null,
>   create_time?: string | null,
>   update_time?: string | null,
>   custom_id?: string | null,
>   plan_overridden?: boolean | null,
>   plan?: {
>     product_id?: string | null,
>     name?: string | null,
>     description?: string | null,
>     billing_cycles?: {
>       pricing_scheme?: {
>         version?: number | null,
>         fixed_price?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null,
>         pricing_model?: string | null,
>         tiers?: {
>           starting_quantity?: string | null,
>           ending_quantity?: string | null,
>           amount?: {
>             currency_code?: string | null,
>             value?: string | null
>           } | null
>         }[] | null,
>         create_time?: string | null,
>         update_time?: string | null
>       } | null,
>       frequency?: {
>         interval_unit?: string | null,
>         interval_count?: number | null
>       } | null,
>       tenure_type?: string | null,
>       sequence?: number | null,
>       total_cycles?: number | null
>     }[] | null,
>     payment_preferences?: {
>       auto_bill_outstanding?: boolean | null,
>       setup_fee?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       setup_fee_failure_action?: string | null,
>       payment_failure_threshold?: number | null
>     } | null,
>     taxes?: {
>       percentage?: string | null,
>       inclusive?: boolean | null
>     } | null,
>     quantity_supported?: boolean | null
>   } | null,
>   links?: {
>     href?: string | null,
>     rel?: string | null,
>     method?: string | null
>   }[] | null
> })& {
> }
> ```

***

### get

`subscriptions.get`

Show subscription details

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.subscriptions.get({ id: '5O190127TN364715T' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the subscription. |
| `fields` | `string` | No | List of fields that are to be returned in the response. Possible value for fields are last\_failed\_payment and plan. |

**Output:** `object`

> [accordion] Output full type
>
> ```ts theme={null}
> ((
>   {
>     status?: string | null,
>     status_change_note?: string | null,
>     status_update_time?: string | null
>   }& any
> )& {
>   id?: string | null,
>   plan_id?: string | null,
>   start_time?: string | null,
>   quantity?: string | null,
>   shipping_amount?: {
>     currency_code?: string | null,
>     value?: string | null
>   } | null,
>   subscriber?: {
>     email_address?: string | null,
>     payer_id?: string | null,
>     name?: {
>       given_name?: string | null,
>       surname?: string | null
>     } | null,
>     phone?: {
>       phone_type?: string | null,
>       phone_number?: {
>         national_number?: string | null
>       } | null
>     } | null,
>     shipping_address?: {
>       name?: {
>         full_name?: string | null
>       } | null,
>       type?: string | null,
>       options?: {
>         id?: string | null,
>         label?: string | null,
>         type?: string | null,
>         amount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null,
>         selected?: boolean | null
>       }[] | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null
>       } | null
>     } | null,
>     payment_source?: {
>       card?: {
>         name?: string & string | null,
>         last_digits?: string | null,
>         brand?: string | null,
>         available_networks?: string[] | null,
>         type?: string | null,
>         authentication_result?: {
>           liability_shift?: string | null,
>           three_d_secure?: {
>             authentication_status?: string | null,
>             enrollment_status?: string | null
>           } | null
>         } | null,
>         attributes?: {
>           vault?: {
>             id?: string | null,
>             status?: string | null,
>             customer?: {
>               id?: string | null
>             } | null,
>             links?: {
>               href?: string | null,
>               rel?: string | null,
>               method?: string | null
>             }[] | null
>           } | null
>         } | null,
>         from_request?: {
>           expiry?: string | null,
>           last_digits?: string | null
>         } | null,
>         expiry?: string & string | null,
>         bin_details?: {
>           bin?: string | null,
>           issuing_bank?: string | null,
>           bin_country_code?: string | null,
>           products?: string[] | null
>         } | null,
>         billing_address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null
>         } | null,
>         currency_code?: string | null
>       } | null
>     } | null
>   } | null,
>   billing_info?: {
>     outstanding_balance?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     cycle_executions?: {
>       tenure_type?: string | null,
>       sequence?: number | null,
>       cycles_completed?: number | null,
>       cycles_remaining?: number | null,
>       current_pricing_scheme_version?: number | null,
>       total_cycles?: number | null
>     }[] | null,
>     last_payment?: {
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       time?: string | null
>     } | null,
>     next_billing_time?: string | null,
>     final_payment_time?: string | null,
>     failed_payments_count?: number | null,
>     last_failed_payment?: {
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       time?: string | null,
>       reason_code?: string | null,
>       next_payment_retry_time?: string | null
>     } | null
>   } | null,
>   create_time?: string | null,
>   update_time?: string | null,
>   custom_id?: string | null,
>   plan_overridden?: boolean | null,
>   plan?: {
>     product_id?: string | null,
>     name?: string | null,
>     description?: string | null,
>     billing_cycles?: {
>       pricing_scheme?: {
>         version?: number | null,
>         fixed_price?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null,
>         pricing_model?: string | null,
>         tiers?: {
>           starting_quantity?: string | null,
>           ending_quantity?: string | null,
>           amount?: {
>             currency_code?: string | null,
>             value?: string | null
>           } | null
>         }[] | null,
>         create_time?: string | null,
>         update_time?: string | null
>       } | null,
>       frequency?: {
>         interval_unit?: string | null,
>         interval_count?: number | null
>       } | null,
>       tenure_type?: string | null,
>       sequence?: number | null,
>       total_cycles?: number | null
>     }[] | null,
>     payment_preferences?: {
>       auto_bill_outstanding?: boolean | null,
>       setup_fee?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       setup_fee_failure_action?: string | null,
>       payment_failure_threshold?: number | null
>     } | null,
>     taxes?: {
>       percentage?: string | null,
>       inclusive?: boolean | null
>     } | null,
>     quantity_supported?: boolean | null
>   } | null,
>   links?: {
>     href?: string | null,
>     rel?: string | null,
>     method?: string | null
>   }[] | null
> })& {
> }
> ```

***

### revise

`subscriptions.revise`

Revise plan or quantity of subscription

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.subscriptions.revise({ id: '5O190127TN364715T' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the subscription. |
| `plan_id` | `string` | No | The unique PayPal-generated ID for the plan. |
| `quantity` | `string` | No | The quantity of the product or service in the subscription. |
| `shipping_amount` | `object` | No | The currency and amount for a financial transaction, such as a balance or payment due. |
| `shipping_address` | `object` | No | The shipping details. |
| `application_context` | `object` | No | The application context, which customizes the payer experience during the subscription approval process with PayPal. |
| `plan` | `object` | No | An inline plan object to customise the subscription. You can override plan level default attributes by providing customised values for the subscription in this object. |

> [accordion] shipping\_amount full type
>
> ```ts theme={null}
> {
>   currency_code: string,
>   value: string
> }
> ```

> [accordion] shipping\_address full type
>
> ```ts theme={null}
> {
>   name?: {
>     full_name?: string
>   },
>   type?: SHIPPING | PICKUP_IN_PERSON | PICKUP_IN_STORE | PICKUP_FROM_PERSON,
>   options?: {
>     id: string,
>     label: string,
>     type?: SHIPPING | PICKUP | PICKUP_IN_STORE | PICKUP_FROM_PERSON,
>     amount?: {
>       currency_code: string,
>       value: string
>     },
>     selected: boolean
>   }[],
>   address?: {
>     address_line_1?: string,
>     address_line_2?: string,
>     admin_area_2?: string,
>     admin_area_1?: string,
>     postal_code?: string,
>     country_code: string
>   }
> }
> ```

> [accordion] application\_context full type
>
> ```ts theme={null}
> {
>   brand_name?: string,
>   locale?: string,
>   shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>   payment_method?: {
>     payee_preferred?: UNRESTRICTED | IMMEDIATE_PAYMENT_REQUIRED
>   },
>   return_url: string,
>   cancel_url: string
> }
> ```

> [accordion] plan full type
>
> ```ts theme={null}
> {
>   billing_cycles?: {
>     pricing_scheme?: {
>       fixed_price?: {
>         currency_code: string,
>         value: string
>       },
>       pricing_model?: VOLUME | TIERED,
>       tiers?: {
>         starting_quantity: string,
>         ending_quantity?: string,
>         amount: {
>           currency_code: string,
>           value: string
>         }
>       }[]
>     },
>     sequence: number,
>     total_cycles?: number
>   }[],
>   payment_preferences?: {
>     auto_bill_outstanding?: boolean,
>     setup_fee?: {
>       currency_code: string,
>       value: string
>     },
>     setup_fee_failure_action?: CONTINUE | CANCEL,
>     payment_failure_threshold?: number
>   },
>   taxes?: {
>     percentage?: string,
>     inclusive?: boolean
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `plan_id` | `string \| null` | No | The unique PayPal-generated ID for the plan. |
| `quantity` | `string \| null` | No | The quantity of the product or service in the subscription. |
| `shipping_amount` | `object \| null` | No | The currency and amount for a financial transaction, such as a balance or payment due. |
| `shipping_address` | `object \| null` | No | The shipping details. |
| `plan` | `object \| null` | No | An inline plan object to customise the subscription. You can override plan level default attributes by providing customised values for the subscription in this object. |
| `plan_overridden` | `boolean \| null` | No | Indicates whether the subscription has overridden any plan attributes. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] shipping\_amount full type
>
> ```ts theme={null}
> {
>   currency_code?: string | null,
>   value?: string | null
> } | null
> ```

> [accordion] shipping\_address full type
>
> ```ts theme={null}
> {
>   name?: {
>     full_name?: string | null
>   } | null,
>   type?: string | null,
>   options?: {
>     id?: string | null,
>     label?: string | null,
>     type?: string | null,
>     amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     selected?: boolean | null
>   }[] | null,
>   address?: {
>     address_line_1?: string | null,
>     address_line_2?: string | null,
>     admin_area_2?: string | null,
>     admin_area_1?: string | null,
>     postal_code?: string | null,
>     country_code?: string | null
>   } | null
> } | null
> ```

> [accordion] plan full type
>
> ```ts theme={null}
> {
>   billing_cycles?: {
>     pricing_scheme?: {
>       version?: number | null,
>       fixed_price?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       pricing_model?: string | null,
>       tiers?: {
>         starting_quantity?: string | null,
>         ending_quantity?: string | null,
>         amount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null
>       }[] | null,
>       create_time?: string | null,
>       update_time?: string | null
>     } | null,
>     sequence?: number | null,
>     total_cycles?: number | null
>   }[] | null,
>   payment_preferences?: {
>     auto_bill_outstanding?: boolean | null,
>     setup_fee?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     setup_fee_failure_action?: string | null,
>     payment_failure_threshold?: number | null
>   } | null,
>   taxes?: {
>     percentage?: string | null,
>     inclusive?: boolean | null
>   } | null
> } | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### suspend

`subscriptions.suspend`

Suspend subscription

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.subscriptions.suspend({ id: '5O190127TN364715T', reason: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the subscription. |
| `reason` | `string` | Yes | The reason for suspension of the Subscription. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | PayPal accepted the call; it answered with no body (204). |

***

### transactions

`subscriptions.transactions`

List transactions for subscription

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.subscriptions.transactions({ id: '5O190127TN364715T', start_time: '2026-11-27T10:00:00Z', end_time: '2026-11-27T10:00:00Z' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the subscription. |
| `start_time` | `string` | Yes | The start time of the range of transactions to list. |
| `end_time` | `string` | Yes | The end time of the range of transactions to list. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `transactions` | `object[] \| null` | No | An array of transactions. |
| `total_items` | `number \| null` | No | The total number of items. |
| `total_pages` | `number \| null` | No | The total number of pages. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] transactions full type
>
> ```ts theme={null}
> {
>   status?: string | null,
>   id?: string | null,
>   amount_with_breakdown?: {
>     gross_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     total_item_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     fee_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     shipping_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     tax_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     net_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null
>   } | null,
>   payer_name?: {
>     prefix?: string | null,
>     given_name?: string | null,
>     surname?: string | null,
>     middle_name?: string | null,
>     suffix?: string | null,
>     full_name?: string | null
>   } | null,
>   payer_email?: string | null,
>   time?: string | null
> }[] | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### update

`subscriptions.update`

Update subscription

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.subscriptions.update({
	id: '5O190127TN364715T',
	patch: [{ op: 'add' }],
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the subscription. |
| `patch` | `object[]` | Yes | An array of JSON patch objects to apply partial updates to resources. |

> [accordion] patch full type
>
> ```ts theme={null}
> {
>   op: add | remove | replace | move | copy | test,
>   path?: string,
>   value?: any,
>   from?: string
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | PayPal accepted the call; it answered with no body (204). |

***

## Trackers

### create

`trackers.create`

Add tracking information for PayPal transaction

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.trackers.create({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `trackers` | `object[]` | No | An array of tracking information for shipments. |
| `links` | `object[]` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] trackers full type
>
> ```ts theme={null}
> {
>   transaction_id: string,
>   tracking_number?: string,
>   tracking_number_type?: CARRIER_PROVIDED | E2E_PARTNER_PROVIDED,
>   status: CANCELLED | DELIVERED | LOCAL_PICKUP | ON_HOLD | SHIPPED | SHIPMENT_CREATED | DROPPED_OFF | IN_TRANSIT | RETURNED | LABEL_PRINTED | ERROR | UNCONFIRMED | PICKUP_FAILED | DELIVERY_DELAYED | DELIVERY_SCHEDULED | DELIVERY_FAILED | INRETURN | IN_PROCESS | NEW | VOID | PROCESSED | NOT_SHIPPED | COMPLETED,
>   shipment_date?: string,
>   carrier?: 2EBOX | 360LION | 3JMSLOGISTICS | 4_72 | 6LS | A1POST | AAA_COOPER | ABCUSTOM | ABXEXPRESS_MY | ACOMMMERCE | ACSWORLDWIDE | ACS_GR | ADERONLINE | ADICIONAL | ADSONE | ADUIEPYLE | AERONET | AEX | AFLLOG_FTP | AGILITY | AIRMEE_WEBHOOK | AIR_CANADA_GLOBAL | ALFATREX | ALLIEDEXPRESS | ALLJOY | ALPHAFAST | ALWAYS_EXPRESS | AMAZON | AMAZON_FBA_SWISHIP | AMAZON_SHIP_MCF | AMSTAN | AMS_GRP | ANDREANI | ANICAM_BOX | ANJUN | ANSERX | AN_POST | AO_COURIER | AO_DEUTSCHLAND | APC_OVERNIGHT | APC_OVERNIGHT_CONNUM | APG | APRISAEXPRESS | AQUILINE | ARAMEX | ARAMEX_AU | ARCO_SPEDIZIONI | ARE_EMIRATES_POST | ARG_OCA | ARK_LOGISTICS | ASE | ASENDIA_HK | ASENDIA_UK | ASENDIA_USA | ASIGNA | AUPOST_CN | AUSTRIAN_POST_EXPRESS | AUS_STARTRACK | AUS_TOLL | AU_AUSTRIAN_POST | AU_AU_POST | AU_TNT | AVERITT | BEL_DHL | BEL_RS | BESTWAYPARCEL | BE_BPOST | BE_KIALA | BG_BULGARIAN_POST | BH_POSTA | BH_WORLDWIDE | BIRDSYSTEM | BJSHOMEDELIVERY | BLINKLASTMILE | BLR_BELPOST | BLUECARE | BLUESTAR | BLUEX | BNEED | BOMBINOEXP | BOND | BONDSCOURIERS | BORDEREXPRESS | BOX_BERRY | BPOST_INT | BRA_CORREIOS | BRING | BROUWER_TRANSPORT | BRT_IT | BRT_IT_PARCELID | BRT_IT_SENDER_REF | BUDBEE_WEBHOOK | BUYLOGIC | B_TWO_C_EUROPE | CAE_DELIVERS | CAINIAO | CARIBOU | CARRIERS | CARRY_FLAP | CA_CANADA_POST | CA_CANPAR | CA_GREYHOUND | CA_PUROLATOR | CBL_LOGISTICA | CDEK | CDEK_TR | CELERITAS | CELLO_SQUARE | CESKA_CZ | CEVA | CFL_LOGISTICS | CGS_EXPRESS | CHAMPION_LOGISTICS | CHITCHATS | CHOIR_EXP | CHROBINSON | CHRONOPOST_FR | CHUKOU1 | CH_SWISS_POST_PRIORITY | CITYLINK_MY | CJPACKET | CJ_CENTURY | CJ_GLS | CJ_HK_INTERNATIONAL | CJ_INT_MY | CJ_KR | CJ_LOGISTICS | CJ_TH | CLEVY_LINKS | CLE_LOGISTICS | CLOUDWISH_ASIA | CNDEXPRESS | CNEXPS | CNWANGTONG | CN_17POST | CN_BESTEXPRESS | CN_BOXC | CN_CHINA_POST_EMS | CN_DPEX | CN_EMS | CN_EQUICK | CN_JCEX | CN_PAYPAL_PACKAGE | CN_POST56 | CN_SF_EXPRESS | CN_STO | CN_WEDO | CN_WISHPOST | CN_YUNDA | COLIS_PRIVE | COLLECTCO | COLLIVERY | COMET_TECH | CONTINENTAL | CON_WAY | COORDINADORA | COPA_COURIER | COPE | CORPORATECOURIERS_WEBHOOK | CORREOS_DE_MEXICO | CORREOS_ES | CORREOS_EXPRESS | CORREO_UY | COSTMETICSNOW | COURANT_PLUS | COUREX | COURIERS_PLEASE | CPACKET | CPEX | CROSHOT | CSE | CTC_EXPRESS | CUBYN | CUCKOOEXPRESS | CYPRUS_POST_CYP | DAIGLOBALTRACK | DAJIN | DANSKE_FRAGT | DAWN_WING | DAYTON_FREIGHT | DBSCHENKER_B2B | DBSCHENKER_SE | DBSCHENKER_SV | DDEXPRESS | DEALERSEND | DELIVERYONTIME | DELNEXT | DELTEC_UK | DEMANDSHIP | DESCARTES | DESIGNERTRANSPORT_WEBHOOK | DESTINY | DEX_I | DE_ASENDIA | DE_DEUTSCHE | DE_DEUTSCHE_POST_DHL_WITHIN_EUROPE_TRACKNET | DE_DHL_EXPRESS | DE_DPD_DELISTRACK | DE_GLS | DHL | DHL_ACTIVE_TRACING | DHL_AU | DHL_BENELUX | DHL_ECOMERCE_ASA | DHL_ES | DHL_FR | DHL_FREIGHT | DHL_GLOBAL_MAIL_ASIA | DHL_HK | DHL_JP | DHL_PARCEL_ES | DHL_PARCEL_NL | DHL_PARCEL_RU | DHL_PL | DHL_REFR | DHL_SG | DHL_SUPPLY_CHAIN | DHL_UK | DIAMOND_EUROGISTICS | DICOM | DIDADI | DIMERCO | DIRECTCOURIERS | DIRECTLOG | DIRECTPARCELS | DMM_NETWORK | DMS_MATRIX | DOBROPOST | DOORA | DOORDASH_WEBHOOK | DPD | DPD_DELISTRACK | DPD_FR | DPD_HGRY | DPD_HK | DPD_IR | DPD_LOCAL | DPD_LOCAL_REF | DPD_POLAND | DPD_RO | DPD_RU | DPEX | DPE_EXPRESS | DPE_SOUTH_AFRC | DSV | DTDC_AU | DTDC_EXPRESS | DTDC_IN | DTD_EXPR | DX_SFTP | DYLT | DYNALOGIC | EASY_MAIL | ECEXPRESS | ECHO | ECMS | ECOSCOOTING | EFEX | EFS | EKART | ELIAN_POST | EMPS_CN | ENDEAVOUR_DELIVERY | ENVIALIA_REFERENCE | EPARCEL_KR | EPST_GLBL | EP_BOX | ESHIPPING | ESP_ASM | ESP_ENVIALIA | ESP_MRW | ESP_NACEX | ESP_PACKLINK | ESP_REDUR | ETOMARS | ETOTAL | ETS_EXPRESS | EU_FLEET_SOLUTIONS | EU_IMX | EXPRESSSALE | FARGOOD | FAR_INTERNATIONAL | FASTRACK | FASTRK_SERV | FASTWAY_IR | FASTWAY_NZ | FDSEXPRESS | FEDEX | FEDEX_CROSSBORDER | FEDEX_FR | FEDEX_INTL_MLSERV | FEDEX_POLAND | FEDEX_UK | FETCHR_WEBHOOK | FIEGE | FIEGE_NL | FIRSTMILE | FLASHEXPRESS | FMX | FONSEN | FORRUN | FREIGHTQUOTE | FRETERAPIDO | FR_BERT | FR_COLIS | FR_EXAPAQ | FR_GEODIS | FR_GLS | FULFILLA | FULFILLME | FURDECO | GAC | GANGBAO | GBA | GBS_BROKER | GB_APC | GB_ARROW | GB_NORSK | GB_PANTHER | GB_TUFFNELLS | GEIS | GEL_EXPRESS | GEMWORLDWIDE | GENERAL_OVERNIGHT | GENIKI_GR | GEODIS_ESPACE | GESWL | GIAO_HANG | GIO_EXPRESS | GLOBALTRANZ | GLOBAL_ABF | GLOBAL_ESTES | GLOBAL_EXPRESS | GLOBAL_IPARCEL | GLOBAL_TNT | GLOBAVEND | GLS_CROTIA | GLS_CZ | GLS_IT | GLS_ITALY | GLS_SLOV | GLS_SLOVEN | GOGLOBALPOST | GOJEK | GRAB_WEBHOOK | GRUPO | GR_ELTA | GSI_EXPRESS | GSO | HAPPY2POINT | HCT_LOGISTICS | HDB | HDB_BOX | HELLMANN | HELTHJEM | HEPPNER | HEPPNER_FR | HERMES | HERMES_2MANN_HANDLING | HERMES_DE | HH_EXP | HIPSHIPPER | HKD | HK_FLYT_EXPRESS | HK_FOUR_PX_EXPRESS | HK_POST | HK_TGX | HOLISOL | HOME_DELIVERY_SOLUTIONS | HOUNDEXPRESS | HRPARCEL | HRV_HRVATSKA | HUAHAN_EXPRESS | HUNTER_EXPRESS | HUODULL | HX_EXPRESS | IBEONE | ICUMULUS | IDEXPRESS | IDN_JNE | IDN_LION_PARCEL | IDN_PANDU | IML | INDOPAKET | IND_BLUEDART | IND_DELHIVERY | IND_DELIVREE | IND_DOTZOT | IND_ECOM | IND_FIRSTFLIGHT | IND_GATI | IND_GOJAVAS | IND_PROFESSIONAL_COURIERS | IND_SAFEEXPRESS | IND_XPRESSBEES | INPOST_PACZKOMATY | INTEGRA2_FTP | INTELIPOST | INTEL_VALLEY | INTERPARCEL_AU | INTERPARCEL_NZ | INTERPARCEL_UK | INTEXPRESS | ISRAEL_POST | ISR_POST_DOMESTIC | IT_DHL_ECOMMERCE | IT_FERCAM | IT_NEXIVE | IT_POSTE_ITALIA | IT_TNT | IVOY_WEBHOOK | I_DIKA | JANCO | JANIO | JERSEY_POST | JET_SHIP | JINDOUYUN | JINSUNG | JOCOM | JOOM_LOGIS | JOYING_BOX | JPN_JAPAN_POST | JPN_SAGAWA | JP_KURO_NEKO_YAMATO_UNYUU | JS_EXPRESS | JTEXPRESS | JTEXPRESS_VN | JX | J_NET | K1_EXPRESS | KANGAROO_MY | KEC | KERRYTJ | KERRYTTC_VN | KERRY_ECOMMERCE | KGMHUB | KHM_CAMBODIA_POST | KOR_ECARGO | KPOST | KR_KOREA_POST | KUEHNE | KURASI | KWE_GLOBAL | KWT | KYUNGDONG_PARCEL | KY_EXPRESS | LALAMOVE | LANDMARK_GLOBAL | LANDMARK_GLOBAL_REFERENCE | LATVIJAS_PASTS | LA_POSTE_SUIVI | LBCEXPRESS_FTP | LEADER | LEGION_EXPRESS | LEXSHIP | LHT_EXPRESS | LICCARDI_EXPRESS | LIEFERY | LINE | LINKBRIDGE | LOCUS_WEBHOOK | LOGISTERS | LOGISTICSWORLDWIDE_HK | LOGISTIKA | LOGISTYX_TRANSGROUP | LONESTAR | LOOMIS_EXPRESS | LOTTE | LTIANEXP | LTL | LTU_LIETUVOS | MAGYAR_HU | MAILAMERICAS | MAILPLUS_JPN | MAIL_PLUS | MAINFREIGHT | MAINWAY | MATDESPATCH | MATKAHUOLTO | MBW | MEX_AEROFLASH | MEX_ESTAFETA | MEX_REDPACK | MEX_SENDA | MGLOBAL | MIKROPAKKET | MIKROPAKKET_BE | MILKMAN | MORE_LINK | MORNING_EXPRESS | MRW_FTP | MXE | MX_CARGO | MYHERMES | MYS_AIRPAK | MYS_EMS | MYS_GDEX | MYS_MYPOST_ONLINE | MYS_MYS_POST | MYS_SKYNET | M_XPRESS | NACEX | NACEX_ES | NANJINGWOYUAN | NATIONAL_SAMEDAY | NATIONEX | NATIONWIDE_MY | NEWAY | NEWEGGEXPRESS | NEWGISTICS | NEWZEALAND_COURIERS | NG_COURIERPLUS | NHANS_SOLUTIONS | NIM_EXPRESS | NINJAVAN_MY | NINJAVAN_SG | NINJAVAN_THAI | NINJAVAN_WB | NIPOST_NG | NLD_DHL | NLD_GLS | NLD_POSTNL | NLD_TRANSMISSION | NOVA_POSHTA | NOVA_POSHTA_INT | NOX_NACHTEXPRESS | NOX_NIGHT_TIME_EXPRESS | NTLOGISTICS_VN | NZ_COURIER_POST | NZ_NZ_POST | OCS | OCS_WORLDWIDE | OKAYPARCEL | OMNIPARCEL | OMNIVA | ONECLICK | ONEWORLDEXPRESS | ORANGE_DS | OSM_WORLDWIDE | OVERSE_EXP | P2P_TRC | PAACK_WEBHOOK | PADTF | PAGO | PALEXPRESS | PALLETWAYS | PALLET_NETWORK | PANTHER_REFERENCE | PAN_ASIA | PAPERFLY | PAPER_EXPRESS | PAQUETEXPRESS | PARCEL2GO | PARCELINKLOGISTICS | PARCELLED_IN | PARCELONE | PARCELPAL_WEBHOOK | PARCELPOINT | PARCELPOST_SG | PARCEL_2_POST | PARKNPARCEL | PCFCORP | PFCEXPRESS | PFLOGISTICS | PHL_AIR21 | PHL_AIRSPEED | PHL_JAMEXPRESS | PICKRR | PICKUP | PICKUPP_MYS | PICKUPP_SGP | PILOT_FREIGHT | PIL_LOGISTICS | PITNEY_BOWES | PITTOHIO | PIXSELL | PLANZER | PLUS_LOG_UK | PL_POCZTA_POLSKA | POL_SIODEMKA | PONY_EXPRESS | POSTA_PLUS | POSTA_RO | POSTA_UKR | POSTEN_NORGE | POSTI | POSTNL_INTL_3S | POSTNL_INT_3_S | POSTNORD_LOGISTICS | POSTNORD_LOGISTICS_DK | POSTUR_IS | POST_SERBIA | POST_SLOVENIA | PRESIDENT_TRANS | PRESSIODE | PRIMAMULTICIPTA | PROMEDDELIVERY | PRT_CHRONOPOST | PRT_CTT | PRT_INT_SEUR | PRT_SEUR | PTS | PTT_POST | QUANTIUM | QWINTRY | RABEN_GROUP | RAF_PH | RAIDEREX | RAM | RCL | RINCOS | RL_US | ROADBULL | ROADRUNNER_FREIGHT | ROCKET_PARCEL | ROUTIFIC_WEBHOOK | ROYAL_MAIL | RPD2MAN | RPX | RPXLOGISTICS | RPX_ID | RUSSIAN_POST | RUSTON | RZYEXPRESS | SAIA_FREIGHT | SAILPOST | SAP_EXPRESS | SAU_SAUDI_POST | SCUDEX_EXPRESS | SDA_IT | SDH_SCM | SEFL | SEINO | SEKOLOGISTICS | SEKO_SFTP | SENDING | SENDIT | SENDLE | SEUR_ES | SEUR_SP_API | SFB2C | SFCSERVICE | SFC_LOGISTICS | SFPLUS_WEBHOOK | SF_EX | SG_DETRACK | SG_QXPRESS | SG_SG_POST | SG_SPEEDPOST | SG_TAQBIN | SHENZHEN | SHIPENTEGRA | SHIPPIT | SHIPTER | SHIPTOR | SHIP_GATE | SHIP_IT_ASIA | SHOPFANS | SHREENANDANCOURIER | SHREETIRUPATI | SHREE_ANJANI_COURIER | SHREE_MARUTI | SIMPLYPOST | SINOTRANS | SIN_GLBL | SKYBOX | SKYNET_UAE | SKYNET_UK | SKYNET_WORLDWIDE | SKYNET_ZA | SKY_POSTAL | SK_POSTA | SMG_EXPRESS | SMOOTH | SMSA_EXPRESS | SONICTL | SOUTH_AFRICAN_POST_OFFICE | SPEEDCOURIERS_GR | SPEEDEE | SPEEDEXCOURIER | SPOTON | SPRING_GDS | SRE_KOREA | STALLIONEXPRESS | STARKEN | STAR_TRACK_EXPRESS | STAR_TRACK_NEXT_FLIGHT | STEPFORWARDFS | STONE3PL | STRECK_TRANSPORT | SUTTON | SWE_POSTNORD | SWISHIP_DE | SWISS_POST_FTP | SYPOST | SZENDEX | TAQBIN_HK | TAQBIN_MY | TARRIVE | TAZMANIAN_FREIGHT | TCK_EXPRESS | TCS | TFM | TFORCE_FINALMILE | THABIT_LOGISTICS | THA_DYNAMIC_LOGISTICS | THA_KERRY | THA_THAILAND_POST | THECOURIERGUY | THEDELIVERYGROUP | THENILE_WEBHOOK | TIGFREIGHT | TIKI_ID | TIPSA | TNT | TNT_CLICK_IT | TNT_FR | TNT_NL | TNT_REFR | TNT_UK | TNT_UK_REFR | TOLL | TOLL_NZ | TOLOS | TOPHATTEREXPRESS | TOPYOU | TOTAL_EXPRESS | TOURLINE | TRACKON | TRANS_KARGO | TRUMPCARD | TRUNKRS_WEBHOOK | TUFFNELLS_REFERENCE | TWO_GO | TW_TAIWAN_POST | UBI_LOGISTICS | UC_EXPRE | UDS | UK_COLLECTPLUS | UK_DPD | UK_NIGHTLINE | UK_PARCELFORCE | UK_UK_MAIL | UK_XDP | UK_YODEL | UPS | UPS_FREIGHT | UPS_MAIL_INNOVATIONS | UPS_REFERENCE | USF_REDDAWAY | USHIP | USPS | US_GLOBEGISTICS | US_LASERSHIP | US_OLD_DOMINION | US_ONTRAC | US_YRC | VAMOX | VENIPAK | VIAEUROPE | VIA_EXPRESS | VIRTRANSPORT | VIWO | VNM_VIETNAM_POST | VNM_VIETTELPOST | WAHANA_ID | WANBEXPRESS | WEASHIP | WEPOST | WESTBANK_COURIER | WESTGATE_GL | WHISTL | WINIT | WISELOADS | WISE_EXPRESS | WIZMO | WMG | WNDIRECT | WYNGS | XDE_WEBHOOK | XDP_UK_REFERENCE | XL_EXPRESS | XPERT_DELIVERY | XPOST | XPO_LOGISTICS | XPRESSEN_DK | XQ_EXPRESS | YAKIT | YANWEN | YDH_EXPRESS | YINGNUO_LOGISTICS | YODEL_DIR | YODEL_INTNL | YTO | YUNEXPRESS | YURTICI_KARGO | YUSEN | ZAJIL_EXPRESS | ZA_COURIERIT | ZA_FASTWAY | ZA_SPECIALISED_FREIGHT | ZEEK_2_DOOR | ZELERIS | ZEPTO_EXPRESS | ZES_EXPRESS | ZIINGFINALMILE | ZINC | ZJS_EXPRESS | ZTO_EXPRESS | ZYLLEM,
>   carrier_name_other?: string,
>   notify_buyer?: boolean,
>   last_updated_time?: string,
>   shipment_direction?: FORWARD | RETURN,
>   tracking_url?: string,
>   links?: {
>     href: string,
>     rel: string,
>     method?: GET | POST | PUT | DELETE | HEAD | CONNECT | OPTIONS | PATCH
>   }[]
> }[]
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href: string,
>   rel: string,
>   method?: GET | POST | PUT | DELETE | HEAD | CONNECT | OPTIONS | PATCH
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `tracker_identifiers` | `object[] \| null` | No | An array of tracking IDs. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] tracker\_identifiers full type
>
> ```ts theme={null}
> {
>   transaction_id?: string | null,
>   tracking_number?: string | null,
>   links?: {
>     href?: string | null,
>     rel?: string | null,
>     method?: string | null
>   }[] | null
> }[] | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### createBatch

`trackers.createBatch`

Add tracking information for multiple PayPal transactions

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.trackers.createBatch({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `trackers` | `object[]` | No | An array of tracking information for shipments. |
| `links` | `object[]` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] trackers full type
>
> ```ts theme={null}
> {
>   transaction_id: string,
>   tracking_number?: string,
>   tracking_number_type?: CARRIER_PROVIDED | E2E_PARTNER_PROVIDED,
>   status: CANCELLED | DELIVERED | LOCAL_PICKUP | ON_HOLD | SHIPPED | SHIPMENT_CREATED | DROPPED_OFF | IN_TRANSIT | RETURNED | LABEL_PRINTED | ERROR | UNCONFIRMED | PICKUP_FAILED | DELIVERY_DELAYED | DELIVERY_SCHEDULED | DELIVERY_FAILED | INRETURN | IN_PROCESS | NEW | VOID | PROCESSED | NOT_SHIPPED | COMPLETED,
>   shipment_date?: string,
>   carrier?: 2EBOX | 360LION | 3JMSLOGISTICS | 4_72 | 6LS | A1POST | AAA_COOPER | ABCUSTOM | ABXEXPRESS_MY | ACOMMMERCE | ACSWORLDWIDE | ACS_GR | ADERONLINE | ADICIONAL | ADSONE | ADUIEPYLE | AERONET | AEX | AFLLOG_FTP | AGILITY | AIRMEE_WEBHOOK | AIR_CANADA_GLOBAL | ALFATREX | ALLIEDEXPRESS | ALLJOY | ALPHAFAST | ALWAYS_EXPRESS | AMAZON | AMAZON_FBA_SWISHIP | AMAZON_SHIP_MCF | AMSTAN | AMS_GRP | ANDREANI | ANICAM_BOX | ANJUN | ANSERX | AN_POST | AO_COURIER | AO_DEUTSCHLAND | APC_OVERNIGHT | APC_OVERNIGHT_CONNUM | APG | APRISAEXPRESS | AQUILINE | ARAMEX | ARAMEX_AU | ARCO_SPEDIZIONI | ARE_EMIRATES_POST | ARG_OCA | ARK_LOGISTICS | ASE | ASENDIA_HK | ASENDIA_UK | ASENDIA_USA | ASIGNA | AUPOST_CN | AUSTRIAN_POST_EXPRESS | AUS_STARTRACK | AUS_TOLL | AU_AUSTRIAN_POST | AU_AU_POST | AU_TNT | AVERITT | BEL_DHL | BEL_RS | BESTWAYPARCEL | BE_BPOST | BE_KIALA | BG_BULGARIAN_POST | BH_POSTA | BH_WORLDWIDE | BIRDSYSTEM | BJSHOMEDELIVERY | BLINKLASTMILE | BLR_BELPOST | BLUECARE | BLUESTAR | BLUEX | BNEED | BOMBINOEXP | BOND | BONDSCOURIERS | BORDEREXPRESS | BOX_BERRY | BPOST_INT | BRA_CORREIOS | BRING | BROUWER_TRANSPORT | BRT_IT | BRT_IT_PARCELID | BRT_IT_SENDER_REF | BUDBEE_WEBHOOK | BUYLOGIC | B_TWO_C_EUROPE | CAE_DELIVERS | CAINIAO | CARIBOU | CARRIERS | CARRY_FLAP | CA_CANADA_POST | CA_CANPAR | CA_GREYHOUND | CA_PUROLATOR | CBL_LOGISTICA | CDEK | CDEK_TR | CELERITAS | CELLO_SQUARE | CESKA_CZ | CEVA | CFL_LOGISTICS | CGS_EXPRESS | CHAMPION_LOGISTICS | CHITCHATS | CHOIR_EXP | CHROBINSON | CHRONOPOST_FR | CHUKOU1 | CH_SWISS_POST_PRIORITY | CITYLINK_MY | CJPACKET | CJ_CENTURY | CJ_GLS | CJ_HK_INTERNATIONAL | CJ_INT_MY | CJ_KR | CJ_LOGISTICS | CJ_TH | CLEVY_LINKS | CLE_LOGISTICS | CLOUDWISH_ASIA | CNDEXPRESS | CNEXPS | CNWANGTONG | CN_17POST | CN_BESTEXPRESS | CN_BOXC | CN_CHINA_POST_EMS | CN_DPEX | CN_EMS | CN_EQUICK | CN_JCEX | CN_PAYPAL_PACKAGE | CN_POST56 | CN_SF_EXPRESS | CN_STO | CN_WEDO | CN_WISHPOST | CN_YUNDA | COLIS_PRIVE | COLLECTCO | COLLIVERY | COMET_TECH | CONTINENTAL | CON_WAY | COORDINADORA | COPA_COURIER | COPE | CORPORATECOURIERS_WEBHOOK | CORREOS_DE_MEXICO | CORREOS_ES | CORREOS_EXPRESS | CORREO_UY | COSTMETICSNOW | COURANT_PLUS | COUREX | COURIERS_PLEASE | CPACKET | CPEX | CROSHOT | CSE | CTC_EXPRESS | CUBYN | CUCKOOEXPRESS | CYPRUS_POST_CYP | DAIGLOBALTRACK | DAJIN | DANSKE_FRAGT | DAWN_WING | DAYTON_FREIGHT | DBSCHENKER_B2B | DBSCHENKER_SE | DBSCHENKER_SV | DDEXPRESS | DEALERSEND | DELIVERYONTIME | DELNEXT | DELTEC_UK | DEMANDSHIP | DESCARTES | DESIGNERTRANSPORT_WEBHOOK | DESTINY | DEX_I | DE_ASENDIA | DE_DEUTSCHE | DE_DEUTSCHE_POST_DHL_WITHIN_EUROPE_TRACKNET | DE_DHL_EXPRESS | DE_DPD_DELISTRACK | DE_GLS | DHL | DHL_ACTIVE_TRACING | DHL_AU | DHL_BENELUX | DHL_ECOMERCE_ASA | DHL_ES | DHL_FR | DHL_FREIGHT | DHL_GLOBAL_MAIL_ASIA | DHL_HK | DHL_JP | DHL_PARCEL_ES | DHL_PARCEL_NL | DHL_PARCEL_RU | DHL_PL | DHL_REFR | DHL_SG | DHL_SUPPLY_CHAIN | DHL_UK | DIAMOND_EUROGISTICS | DICOM | DIDADI | DIMERCO | DIRECTCOURIERS | DIRECTLOG | DIRECTPARCELS | DMM_NETWORK | DMS_MATRIX | DOBROPOST | DOORA | DOORDASH_WEBHOOK | DPD | DPD_DELISTRACK | DPD_FR | DPD_HGRY | DPD_HK | DPD_IR | DPD_LOCAL | DPD_LOCAL_REF | DPD_POLAND | DPD_RO | DPD_RU | DPEX | DPE_EXPRESS | DPE_SOUTH_AFRC | DSV | DTDC_AU | DTDC_EXPRESS | DTDC_IN | DTD_EXPR | DX_SFTP | DYLT | DYNALOGIC | EASY_MAIL | ECEXPRESS | ECHO | ECMS | ECOSCOOTING | EFEX | EFS | EKART | ELIAN_POST | EMPS_CN | ENDEAVOUR_DELIVERY | ENVIALIA_REFERENCE | EPARCEL_KR | EPST_GLBL | EP_BOX | ESHIPPING | ESP_ASM | ESP_ENVIALIA | ESP_MRW | ESP_NACEX | ESP_PACKLINK | ESP_REDUR | ETOMARS | ETOTAL | ETS_EXPRESS | EU_FLEET_SOLUTIONS | EU_IMX | EXPRESSSALE | FARGOOD | FAR_INTERNATIONAL | FASTRACK | FASTRK_SERV | FASTWAY_IR | FASTWAY_NZ | FDSEXPRESS | FEDEX | FEDEX_CROSSBORDER | FEDEX_FR | FEDEX_INTL_MLSERV | FEDEX_POLAND | FEDEX_UK | FETCHR_WEBHOOK | FIEGE | FIEGE_NL | FIRSTMILE | FLASHEXPRESS | FMX | FONSEN | FORRUN | FREIGHTQUOTE | FRETERAPIDO | FR_BERT | FR_COLIS | FR_EXAPAQ | FR_GEODIS | FR_GLS | FULFILLA | FULFILLME | FURDECO | GAC | GANGBAO | GBA | GBS_BROKER | GB_APC | GB_ARROW | GB_NORSK | GB_PANTHER | GB_TUFFNELLS | GEIS | GEL_EXPRESS | GEMWORLDWIDE | GENERAL_OVERNIGHT | GENIKI_GR | GEODIS_ESPACE | GESWL | GIAO_HANG | GIO_EXPRESS | GLOBALTRANZ | GLOBAL_ABF | GLOBAL_ESTES | GLOBAL_EXPRESS | GLOBAL_IPARCEL | GLOBAL_TNT | GLOBAVEND | GLS_CROTIA | GLS_CZ | GLS_IT | GLS_ITALY | GLS_SLOV | GLS_SLOVEN | GOGLOBALPOST | GOJEK | GRAB_WEBHOOK | GRUPO | GR_ELTA | GSI_EXPRESS | GSO | HAPPY2POINT | HCT_LOGISTICS | HDB | HDB_BOX | HELLMANN | HELTHJEM | HEPPNER | HEPPNER_FR | HERMES | HERMES_2MANN_HANDLING | HERMES_DE | HH_EXP | HIPSHIPPER | HKD | HK_FLYT_EXPRESS | HK_FOUR_PX_EXPRESS | HK_POST | HK_TGX | HOLISOL | HOME_DELIVERY_SOLUTIONS | HOUNDEXPRESS | HRPARCEL | HRV_HRVATSKA | HUAHAN_EXPRESS | HUNTER_EXPRESS | HUODULL | HX_EXPRESS | IBEONE | ICUMULUS | IDEXPRESS | IDN_JNE | IDN_LION_PARCEL | IDN_PANDU | IML | INDOPAKET | IND_BLUEDART | IND_DELHIVERY | IND_DELIVREE | IND_DOTZOT | IND_ECOM | IND_FIRSTFLIGHT | IND_GATI | IND_GOJAVAS | IND_PROFESSIONAL_COURIERS | IND_SAFEEXPRESS | IND_XPRESSBEES | INPOST_PACZKOMATY | INTEGRA2_FTP | INTELIPOST | INTEL_VALLEY | INTERPARCEL_AU | INTERPARCEL_NZ | INTERPARCEL_UK | INTEXPRESS | ISRAEL_POST | ISR_POST_DOMESTIC | IT_DHL_ECOMMERCE | IT_FERCAM | IT_NEXIVE | IT_POSTE_ITALIA | IT_TNT | IVOY_WEBHOOK | I_DIKA | JANCO | JANIO | JERSEY_POST | JET_SHIP | JINDOUYUN | JINSUNG | JOCOM | JOOM_LOGIS | JOYING_BOX | JPN_JAPAN_POST | JPN_SAGAWA | JP_KURO_NEKO_YAMATO_UNYUU | JS_EXPRESS | JTEXPRESS | JTEXPRESS_VN | JX | J_NET | K1_EXPRESS | KANGAROO_MY | KEC | KERRYTJ | KERRYTTC_VN | KERRY_ECOMMERCE | KGMHUB | KHM_CAMBODIA_POST | KOR_ECARGO | KPOST | KR_KOREA_POST | KUEHNE | KURASI | KWE_GLOBAL | KWT | KYUNGDONG_PARCEL | KY_EXPRESS | LALAMOVE | LANDMARK_GLOBAL | LANDMARK_GLOBAL_REFERENCE | LATVIJAS_PASTS | LA_POSTE_SUIVI | LBCEXPRESS_FTP | LEADER | LEGION_EXPRESS | LEXSHIP | LHT_EXPRESS | LICCARDI_EXPRESS | LIEFERY | LINE | LINKBRIDGE | LOCUS_WEBHOOK | LOGISTERS | LOGISTICSWORLDWIDE_HK | LOGISTIKA | LOGISTYX_TRANSGROUP | LONESTAR | LOOMIS_EXPRESS | LOTTE | LTIANEXP | LTL | LTU_LIETUVOS | MAGYAR_HU | MAILAMERICAS | MAILPLUS_JPN | MAIL_PLUS | MAINFREIGHT | MAINWAY | MATDESPATCH | MATKAHUOLTO | MBW | MEX_AEROFLASH | MEX_ESTAFETA | MEX_REDPACK | MEX_SENDA | MGLOBAL | MIKROPAKKET | MIKROPAKKET_BE | MILKMAN | MORE_LINK | MORNING_EXPRESS | MRW_FTP | MXE | MX_CARGO | MYHERMES | MYS_AIRPAK | MYS_EMS | MYS_GDEX | MYS_MYPOST_ONLINE | MYS_MYS_POST | MYS_SKYNET | M_XPRESS | NACEX | NACEX_ES | NANJINGWOYUAN | NATIONAL_SAMEDAY | NATIONEX | NATIONWIDE_MY | NEWAY | NEWEGGEXPRESS | NEWGISTICS | NEWZEALAND_COURIERS | NG_COURIERPLUS | NHANS_SOLUTIONS | NIM_EXPRESS | NINJAVAN_MY | NINJAVAN_SG | NINJAVAN_THAI | NINJAVAN_WB | NIPOST_NG | NLD_DHL | NLD_GLS | NLD_POSTNL | NLD_TRANSMISSION | NOVA_POSHTA | NOVA_POSHTA_INT | NOX_NACHTEXPRESS | NOX_NIGHT_TIME_EXPRESS | NTLOGISTICS_VN | NZ_COURIER_POST | NZ_NZ_POST | OCS | OCS_WORLDWIDE | OKAYPARCEL | OMNIPARCEL | OMNIVA | ONECLICK | ONEWORLDEXPRESS | ORANGE_DS | OSM_WORLDWIDE | OVERSE_EXP | P2P_TRC | PAACK_WEBHOOK | PADTF | PAGO | PALEXPRESS | PALLETWAYS | PALLET_NETWORK | PANTHER_REFERENCE | PAN_ASIA | PAPERFLY | PAPER_EXPRESS | PAQUETEXPRESS | PARCEL2GO | PARCELINKLOGISTICS | PARCELLED_IN | PARCELONE | PARCELPAL_WEBHOOK | PARCELPOINT | PARCELPOST_SG | PARCEL_2_POST | PARKNPARCEL | PCFCORP | PFCEXPRESS | PFLOGISTICS | PHL_AIR21 | PHL_AIRSPEED | PHL_JAMEXPRESS | PICKRR | PICKUP | PICKUPP_MYS | PICKUPP_SGP | PILOT_FREIGHT | PIL_LOGISTICS | PITNEY_BOWES | PITTOHIO | PIXSELL | PLANZER | PLUS_LOG_UK | PL_POCZTA_POLSKA | POL_SIODEMKA | PONY_EXPRESS | POSTA_PLUS | POSTA_RO | POSTA_UKR | POSTEN_NORGE | POSTI | POSTNL_INTL_3S | POSTNL_INT_3_S | POSTNORD_LOGISTICS | POSTNORD_LOGISTICS_DK | POSTUR_IS | POST_SERBIA | POST_SLOVENIA | PRESIDENT_TRANS | PRESSIODE | PRIMAMULTICIPTA | PROMEDDELIVERY | PRT_CHRONOPOST | PRT_CTT | PRT_INT_SEUR | PRT_SEUR | PTS | PTT_POST | QUANTIUM | QWINTRY | RABEN_GROUP | RAF_PH | RAIDEREX | RAM | RCL | RINCOS | RL_US | ROADBULL | ROADRUNNER_FREIGHT | ROCKET_PARCEL | ROUTIFIC_WEBHOOK | ROYAL_MAIL | RPD2MAN | RPX | RPXLOGISTICS | RPX_ID | RUSSIAN_POST | RUSTON | RZYEXPRESS | SAIA_FREIGHT | SAILPOST | SAP_EXPRESS | SAU_SAUDI_POST | SCUDEX_EXPRESS | SDA_IT | SDH_SCM | SEFL | SEINO | SEKOLOGISTICS | SEKO_SFTP | SENDING | SENDIT | SENDLE | SEUR_ES | SEUR_SP_API | SFB2C | SFCSERVICE | SFC_LOGISTICS | SFPLUS_WEBHOOK | SF_EX | SG_DETRACK | SG_QXPRESS | SG_SG_POST | SG_SPEEDPOST | SG_TAQBIN | SHENZHEN | SHIPENTEGRA | SHIPPIT | SHIPTER | SHIPTOR | SHIP_GATE | SHIP_IT_ASIA | SHOPFANS | SHREENANDANCOURIER | SHREETIRUPATI | SHREE_ANJANI_COURIER | SHREE_MARUTI | SIMPLYPOST | SINOTRANS | SIN_GLBL | SKYBOX | SKYNET_UAE | SKYNET_UK | SKYNET_WORLDWIDE | SKYNET_ZA | SKY_POSTAL | SK_POSTA | SMG_EXPRESS | SMOOTH | SMSA_EXPRESS | SONICTL | SOUTH_AFRICAN_POST_OFFICE | SPEEDCOURIERS_GR | SPEEDEE | SPEEDEXCOURIER | SPOTON | SPRING_GDS | SRE_KOREA | STALLIONEXPRESS | STARKEN | STAR_TRACK_EXPRESS | STAR_TRACK_NEXT_FLIGHT | STEPFORWARDFS | STONE3PL | STRECK_TRANSPORT | SUTTON | SWE_POSTNORD | SWISHIP_DE | SWISS_POST_FTP | SYPOST | SZENDEX | TAQBIN_HK | TAQBIN_MY | TARRIVE | TAZMANIAN_FREIGHT | TCK_EXPRESS | TCS | TFM | TFORCE_FINALMILE | THABIT_LOGISTICS | THA_DYNAMIC_LOGISTICS | THA_KERRY | THA_THAILAND_POST | THECOURIERGUY | THEDELIVERYGROUP | THENILE_WEBHOOK | TIGFREIGHT | TIKI_ID | TIPSA | TNT | TNT_CLICK_IT | TNT_FR | TNT_NL | TNT_REFR | TNT_UK | TNT_UK_REFR | TOLL | TOLL_NZ | TOLOS | TOPHATTEREXPRESS | TOPYOU | TOTAL_EXPRESS | TOURLINE | TRACKON | TRANS_KARGO | TRUMPCARD | TRUNKRS_WEBHOOK | TUFFNELLS_REFERENCE | TWO_GO | TW_TAIWAN_POST | UBI_LOGISTICS | UC_EXPRE | UDS | UK_COLLECTPLUS | UK_DPD | UK_NIGHTLINE | UK_PARCELFORCE | UK_UK_MAIL | UK_XDP | UK_YODEL | UPS | UPS_FREIGHT | UPS_MAIL_INNOVATIONS | UPS_REFERENCE | USF_REDDAWAY | USHIP | USPS | US_GLOBEGISTICS | US_LASERSHIP | US_OLD_DOMINION | US_ONTRAC | US_YRC | VAMOX | VENIPAK | VIAEUROPE | VIA_EXPRESS | VIRTRANSPORT | VIWO | VNM_VIETNAM_POST | VNM_VIETTELPOST | WAHANA_ID | WANBEXPRESS | WEASHIP | WEPOST | WESTBANK_COURIER | WESTGATE_GL | WHISTL | WINIT | WISELOADS | WISE_EXPRESS | WIZMO | WMG | WNDIRECT | WYNGS | XDE_WEBHOOK | XDP_UK_REFERENCE | XL_EXPRESS | XPERT_DELIVERY | XPOST | XPO_LOGISTICS | XPRESSEN_DK | XQ_EXPRESS | YAKIT | YANWEN | YDH_EXPRESS | YINGNUO_LOGISTICS | YODEL_DIR | YODEL_INTNL | YTO | YUNEXPRESS | YURTICI_KARGO | YUSEN | ZAJIL_EXPRESS | ZA_COURIERIT | ZA_FASTWAY | ZA_SPECIALISED_FREIGHT | ZEEK_2_DOOR | ZELERIS | ZEPTO_EXPRESS | ZES_EXPRESS | ZIINGFINALMILE | ZINC | ZJS_EXPRESS | ZTO_EXPRESS | ZYLLEM,
>   carrier_name_other?: string,
>   notify_buyer?: boolean,
>   last_updated_time?: string,
>   shipment_direction?: FORWARD | RETURN,
>   tracking_url?: string,
>   links?: {
>     href: string,
>     rel: string,
>     method?: GET | POST | PUT | DELETE | HEAD | CONNECT | OPTIONS | PATCH
>   }[]
> }[]
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href: string,
>   rel: string,
>   method?: GET | POST | PUT | DELETE | HEAD | CONNECT | OPTIONS | PATCH
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `tracker_identifiers` | `object[] \| null` | No | The batch header. |
| `errors` | `object[] \| null` | No | An array of error responses. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] tracker\_identifiers full type
>
> ```ts theme={null}
> {
>   transaction_id?: string | null,
>   tracking_number?: string | null,
>   links?: {
>     href?: string | null,
>     rel?: string | null,
>     method?: string | null
>   }[] | null
> }[] | null
> ```

> [accordion] errors full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   message?: string | null,
>   debug_id?: string | null,
>   information_link?: string | null,
>   details?: {
>     field?: string | null,
>     value?: string | null,
>     location?: string | null,
>     issue?: string | null,
>     description?: string | null,
>     links?: {
>       href?: string | null,
>       rel?: string | null,
>       method?: string | null
>     }[] | null
>   }[] | null,
>   links?: {
>     href?: string | null,
>     rel?: string | null,
>     method?: string | null
>   }[] | null
> }[] | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### get

`trackers.get`

Show tracking information

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.trackers.get({ id: '5O190127TN364715T' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the tracker in the transaction\_id-tracking\_number format. |
| `account_id` | `string` | No | Encrypted PayPal Account ID of the buyer or seller. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `transaction_id` | `string \| null` | No | The PayPal transaction ID. |
| `tracking_number` | `string \| null` | No | The tracking number for the shipment. Carrier information, `carrier` is required if tracking\_number is provided. |
| `tracking_number_type` | `string \| null` | No | The tracking number type. |
| `status` | `string \| null` | No | The status of the item shipment. For allowed values, see Shipping Statuses. |
| `shipment_date` | `string \| null` | No | The stand-alone date, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). To represent special legal values, such as a date of birth, you should use dates with no associated time or time-zone data. Whenever possible, use the standard `date_time` type. This regular expression does not validate all dates. For example, February 31 is valid and nothing is known about leap years. |
| `carrier` | `string \| null` | No | The carrier for the shipment. Carrier information is required when tracking\_number is provided. Some carriers have a global version as well as local subsidiaries. The subsidiaries are repeated over many countries and might also have an entry in the global list. Choose the carrier for your country. If the carrier is not available for your country, choose the global version of the carrier. If your carrier name is not in the list, set `carrier` to `OTHER` and set carrier name in `carrier_name_other`. For allowed values, see Carriers. |
| `carrier_name_other` | `string \| null` | No | The name of the carrier for the shipment. Provide this value only if the carrier parameter is OTHER. |
| `postage_payment_id` | `string \| null` | No | The postage payment ID. |
| `notify_buyer` | `boolean \| null` | No | If true , sends an email notification to the buyer of the PayPal transaction. The email contains the tracking information that was uploaded through the API. |
| `quantity` | `number \| null` | No | The quantity of items shipped. |
| `tracking_number_validated` | `boolean \| null` | No | Indicates whether the carrier validated the tracking number. |
| `last_updated_time` | `string \| null` | No | The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional.Note: The regular expression provides guidance but does not reject all invalid dates. |
| `shipment_direction` | `string \| null` | No | To denote whether the shipment is sent forward to the receiver or returned back. |
| `shipment_uploader` | `string \| null` | No | To denote which party uploaded the shipment tracking info. |
| `account_id` | `string \| null` | No | Encrypted PayPal Account ID of the buyer or seller. |
| `tracking_url` | `string \| null` | No | Tracking Link of the shipment. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### list

`trackers.list`

List tracking information

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.trackers.list({ transaction_id: 'EXTR-86F38350LX4353815' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `transaction_id` | `string` | Yes | Filters the tracking information that appears in the response by a PayPal transaction ID. |
| `tracking_number` | `string` | No | Filters the tracking information that appears in the response by a tracking number. |
| `account_id` | `string` | No | Encrypted PayPal Account ID of the buyer or seller. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `transaction_id` | `string \| null` | No | The PayPal transaction ID. |
| `tracking_number` | `string \| null` | No | The tracking number for the shipment. Carrier information, `carrier` is required if tracking\_number is provided. |
| `tracking_number_type` | `string \| null` | No | The tracking number type. |
| `status` | `string \| null` | No | The status of the item shipment. For allowed values, see Shipping Statuses. |
| `shipment_date` | `string \| null` | No | The stand-alone date, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). To represent special legal values, such as a date of birth, you should use dates with no associated time or time-zone data. Whenever possible, use the standard `date_time` type. This regular expression does not validate all dates. For example, February 31 is valid and nothing is known about leap years. |
| `carrier` | `string \| null` | No | The carrier for the shipment. Carrier information is required when tracking\_number is provided. Some carriers have a global version as well as local subsidiaries. The subsidiaries are repeated over many countries and might also have an entry in the global list. Choose the carrier for your country. If the carrier is not available for your country, choose the global version of the carrier. If your carrier name is not in the list, set `carrier` to `OTHER` and set carrier name in `carrier_name_other`. For allowed values, see Carriers. |
| `carrier_name_other` | `string \| null` | No | The name of the carrier for the shipment. Provide this value only if the carrier parameter is OTHER. |
| `postage_payment_id` | `string \| null` | No | The postage payment ID. |
| `notify_buyer` | `boolean \| null` | No | If true , sends an email notification to the buyer of the PayPal transaction. The email contains the tracking information that was uploaded through the API. |
| `quantity` | `number \| null` | No | The quantity of items shipped. |
| `tracking_number_validated` | `boolean \| null` | No | Indicates whether the carrier validated the tracking number. |
| `last_updated_time` | `string \| null` | No | The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional.Note: The regular expression provides guidance but does not reject all invalid dates. |
| `shipment_direction` | `string \| null` | No | To denote whether the shipment is sent forward to the receiver or returned back. |
| `shipment_uploader` | `string \| null` | No | To denote which party uploaded the shipment tracking info. |
| `account_id` | `string \| null` | No | Encrypted PayPal Account ID of the buyer or seller. |
| `tracking_url` | `string \| null` | No | Tracking Link of the shipment. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### update

`trackers.update`

Update or cancel tracking information for PayPal transaction

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.trackers.update({ id: '5O190127TN364715T', transaction_id: 'EXTR86F38350LX4353815', status: 'CANCELLED' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the tracker in the transaction\_id-tracking\_number format. |
| `transaction_id` | `string` | Yes | The PayPal transaction ID. |
| `tracking_number` | `string` | No | The tracking number for the shipment. Carrier information, `carrier` is required if tracking\_number is provided. |
| `tracking_number_type` | `CARRIER_PROVIDED \| E2E_PARTNER_PROVIDED` | No | The tracking number type. |
| `status` | `CANCELLED \| DELIVERED \| LOCAL_PICKUP \| ON_HOLD \| SHIPPED \| SHIPMENT_CREATED \| DROPPED_OFF \| IN_TRANSIT \| RETURNED \| LABEL_PRINTED \| ERROR \| UNCONFIRMED \| PICKUP_FAILED \| DELIVERY_DELAYED \| DELIVERY_SCHEDULED \| DELIVERY_FAILED \| INRETURN \| IN_PROCESS \| NEW \| VOID \| PROCESSED \| NOT_SHIPPED \| COMPLETED` | Yes | The status of the item shipment. For allowed values, see Shipping Statuses. |
| `shipment_date` | `string` | No | The stand-alone date, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). To represent special legal values, such as a date of birth, you should use dates with no associated time or time-zone data. Whenever possible, use the standard `date_time` type. This regular expression does not validate all dates. For example, February 31 is valid and nothing is known about leap years. |
| `carrier` | `2EBOX \| 360LION \| 3JMSLOGISTICS \| 4_72 \| 6LS \| A1POST \| AAA_COOPER \| ABCUSTOM \| ABXEXPRESS_MY \| ACOMMMERCE \| ACSWORLDWIDE \| ACS_GR \| ADERONLINE \| ADICIONAL \| ADSONE \| ADUIEPYLE \| AERONET \| AEX \| AFLLOG_FTP \| AGILITY \| AIRMEE_WEBHOOK \| AIR_CANADA_GLOBAL \| ALFATREX \| ALLIEDEXPRESS \| ALLJOY \| ALPHAFAST \| ALWAYS_EXPRESS \| AMAZON \| AMAZON_FBA_SWISHIP \| AMAZON_SHIP_MCF \| AMSTAN \| AMS_GRP \| ANDREANI \| ANICAM_BOX \| ANJUN \| ANSERX \| AN_POST \| AO_COURIER \| AO_DEUTSCHLAND \| APC_OVERNIGHT \| APC_OVERNIGHT_CONNUM \| APG \| APRISAEXPRESS \| AQUILINE \| ARAMEX \| ARAMEX_AU \| ARCO_SPEDIZIONI \| ARE_EMIRATES_POST \| ARG_OCA \| ARK_LOGISTICS \| ASE \| ASENDIA_HK \| ASENDIA_UK \| ASENDIA_USA \| ASIGNA \| AUPOST_CN \| AUSTRIAN_POST_EXPRESS \| AUS_STARTRACK \| AUS_TOLL \| AU_AUSTRIAN_POST \| AU_AU_POST \| AU_TNT \| AVERITT \| BEL_DHL \| BEL_RS \| BESTWAYPARCEL \| BE_BPOST \| BE_KIALA \| BG_BULGARIAN_POST \| BH_POSTA \| BH_WORLDWIDE \| BIRDSYSTEM \| BJSHOMEDELIVERY \| BLINKLASTMILE \| BLR_BELPOST \| BLUECARE \| BLUESTAR \| BLUEX \| BNEED \| BOMBINOEXP \| BOND \| BONDSCOURIERS \| BORDEREXPRESS \| BOX_BERRY \| BPOST_INT \| BRA_CORREIOS \| BRING \| BROUWER_TRANSPORT \| BRT_IT \| BRT_IT_PARCELID \| BRT_IT_SENDER_REF \| BUDBEE_WEBHOOK \| BUYLOGIC \| B_TWO_C_EUROPE \| CAE_DELIVERS \| CAINIAO \| CARIBOU \| CARRIERS \| CARRY_FLAP \| CA_CANADA_POST \| CA_CANPAR \| CA_GREYHOUND \| CA_PUROLATOR \| CBL_LOGISTICA \| CDEK \| CDEK_TR \| CELERITAS \| CELLO_SQUARE \| CESKA_CZ \| CEVA \| CFL_LOGISTICS \| CGS_EXPRESS \| CHAMPION_LOGISTICS \| CHITCHATS \| CHOIR_EXP \| CHROBINSON \| CHRONOPOST_FR \| CHUKOU1 \| CH_SWISS_POST_PRIORITY \| CITYLINK_MY \| CJPACKET \| CJ_CENTURY \| CJ_GLS \| CJ_HK_INTERNATIONAL \| CJ_INT_MY \| CJ_KR \| CJ_LOGISTICS \| CJ_TH \| CLEVY_LINKS \| CLE_LOGISTICS \| CLOUDWISH_ASIA \| CNDEXPRESS \| CNEXPS \| CNWANGTONG \| CN_17POST \| CN_BESTEXPRESS \| CN_BOXC \| CN_CHINA_POST_EMS \| CN_DPEX \| CN_EMS \| CN_EQUICK \| CN_JCEX \| CN_PAYPAL_PACKAGE \| CN_POST56 \| CN_SF_EXPRESS \| CN_STO \| CN_WEDO \| CN_WISHPOST \| CN_YUNDA \| COLIS_PRIVE \| COLLECTCO \| COLLIVERY \| COMET_TECH \| CONTINENTAL \| CON_WAY \| COORDINADORA \| COPA_COURIER \| COPE \| CORPORATECOURIERS_WEBHOOK \| CORREOS_DE_MEXICO \| CORREOS_ES \| CORREOS_EXPRESS \| CORREO_UY \| COSTMETICSNOW \| COURANT_PLUS \| COUREX \| COURIERS_PLEASE \| CPACKET \| CPEX \| CROSHOT \| CSE \| CTC_EXPRESS \| CUBYN \| CUCKOOEXPRESS \| CYPRUS_POST_CYP \| DAIGLOBALTRACK \| DAJIN \| DANSKE_FRAGT \| DAWN_WING \| DAYTON_FREIGHT \| DBSCHENKER_B2B \| DBSCHENKER_SE \| DBSCHENKER_SV \| DDEXPRESS \| DEALERSEND \| DELIVERYONTIME \| DELNEXT \| DELTEC_UK \| DEMANDSHIP \| DESCARTES \| DESIGNERTRANSPORT_WEBHOOK \| DESTINY \| DEX_I \| DE_ASENDIA \| DE_DEUTSCHE \| DE_DEUTSCHE_POST_DHL_WITHIN_EUROPE_TRACKNET \| DE_DHL_EXPRESS \| DE_DPD_DELISTRACK \| DE_GLS \| DHL \| DHL_ACTIVE_TRACING \| DHL_AU \| DHL_BENELUX \| DHL_ECOMERCE_ASA \| DHL_ES \| DHL_FR \| DHL_FREIGHT \| DHL_GLOBAL_MAIL_ASIA \| DHL_HK \| DHL_JP \| DHL_PARCEL_ES \| DHL_PARCEL_NL \| DHL_PARCEL_RU \| DHL_PL \| DHL_REFR \| DHL_SG \| DHL_SUPPLY_CHAIN \| DHL_UK \| DIAMOND_EUROGISTICS \| DICOM \| DIDADI \| DIMERCO \| DIRECTCOURIERS \| DIRECTLOG \| DIRECTPARCELS \| DMM_NETWORK \| DMS_MATRIX \| DOBROPOST \| DOORA \| DOORDASH_WEBHOOK \| DPD \| DPD_DELISTRACK \| DPD_FR \| DPD_HGRY \| DPD_HK \| DPD_IR \| DPD_LOCAL \| DPD_LOCAL_REF \| DPD_POLAND \| DPD_RO \| DPD_RU \| DPEX \| DPE_EXPRESS \| DPE_SOUTH_AFRC \| DSV \| DTDC_AU \| DTDC_EXPRESS \| DTDC_IN \| DTD_EXPR \| DX_SFTP \| DYLT \| DYNALOGIC \| EASY_MAIL \| ECEXPRESS \| ECHO \| ECMS \| ECOSCOOTING \| EFEX \| EFS \| EKART \| ELIAN_POST \| EMPS_CN \| ENDEAVOUR_DELIVERY \| ENVIALIA_REFERENCE \| EPARCEL_KR \| EPST_GLBL \| EP_BOX \| ESHIPPING \| ESP_ASM \| ESP_ENVIALIA \| ESP_MRW \| ESP_NACEX \| ESP_PACKLINK \| ESP_REDUR \| ETOMARS \| ETOTAL \| ETS_EXPRESS \| EU_FLEET_SOLUTIONS \| EU_IMX \| EXPRESSSALE \| FARGOOD \| FAR_INTERNATIONAL \| FASTRACK \| FASTRK_SERV \| FASTWAY_IR \| FASTWAY_NZ \| FDSEXPRESS \| FEDEX \| FEDEX_CROSSBORDER \| FEDEX_FR \| FEDEX_INTL_MLSERV \| FEDEX_POLAND \| FEDEX_UK \| FETCHR_WEBHOOK \| FIEGE \| FIEGE_NL \| FIRSTMILE \| FLASHEXPRESS \| FMX \| FONSEN \| FORRUN \| FREIGHTQUOTE \| FRETERAPIDO \| FR_BERT \| FR_COLIS \| FR_EXAPAQ \| FR_GEODIS \| FR_GLS \| FULFILLA \| FULFILLME \| FURDECO \| GAC \| GANGBAO \| GBA \| GBS_BROKER \| GB_APC \| GB_ARROW \| GB_NORSK \| GB_PANTHER \| GB_TUFFNELLS \| GEIS \| GEL_EXPRESS \| GEMWORLDWIDE \| GENERAL_OVERNIGHT \| GENIKI_GR \| GEODIS_ESPACE \| GESWL \| GIAO_HANG \| GIO_EXPRESS \| GLOBALTRANZ \| GLOBAL_ABF \| GLOBAL_ESTES \| GLOBAL_EXPRESS \| GLOBAL_IPARCEL \| GLOBAL_TNT \| GLOBAVEND \| GLS_CROTIA \| GLS_CZ \| GLS_IT \| GLS_ITALY \| GLS_SLOV \| GLS_SLOVEN \| GOGLOBALPOST \| GOJEK \| GRAB_WEBHOOK \| GRUPO \| GR_ELTA \| GSI_EXPRESS \| GSO \| HAPPY2POINT \| HCT_LOGISTICS \| HDB \| HDB_BOX \| HELLMANN \| HELTHJEM \| HEPPNER \| HEPPNER_FR \| HERMES \| HERMES_2MANN_HANDLING \| HERMES_DE \| HH_EXP \| HIPSHIPPER \| HKD \| HK_FLYT_EXPRESS \| HK_FOUR_PX_EXPRESS \| HK_POST \| HK_TGX \| HOLISOL \| HOME_DELIVERY_SOLUTIONS \| HOUNDEXPRESS \| HRPARCEL \| HRV_HRVATSKA \| HUAHAN_EXPRESS \| HUNTER_EXPRESS \| HUODULL \| HX_EXPRESS \| IBEONE \| ICUMULUS \| IDEXPRESS \| IDN_JNE \| IDN_LION_PARCEL \| IDN_PANDU \| IML \| INDOPAKET \| IND_BLUEDART \| IND_DELHIVERY \| IND_DELIVREE \| IND_DOTZOT \| IND_ECOM \| IND_FIRSTFLIGHT \| IND_GATI \| IND_GOJAVAS \| IND_PROFESSIONAL_COURIERS \| IND_SAFEEXPRESS \| IND_XPRESSBEES \| INPOST_PACZKOMATY \| INTEGRA2_FTP \| INTELIPOST \| INTEL_VALLEY \| INTERPARCEL_AU \| INTERPARCEL_NZ \| INTERPARCEL_UK \| INTEXPRESS \| ISRAEL_POST \| ISR_POST_DOMESTIC \| IT_DHL_ECOMMERCE \| IT_FERCAM \| IT_NEXIVE \| IT_POSTE_ITALIA \| IT_TNT \| IVOY_WEBHOOK \| I_DIKA \| JANCO \| JANIO \| JERSEY_POST \| JET_SHIP \| JINDOUYUN \| JINSUNG \| JOCOM \| JOOM_LOGIS \| JOYING_BOX \| JPN_JAPAN_POST \| JPN_SAGAWA \| JP_KURO_NEKO_YAMATO_UNYUU \| JS_EXPRESS \| JTEXPRESS \| JTEXPRESS_VN \| JX \| J_NET \| K1_EXPRESS \| KANGAROO_MY \| KEC \| KERRYTJ \| KERRYTTC_VN \| KERRY_ECOMMERCE \| KGMHUB \| KHM_CAMBODIA_POST \| KOR_ECARGO \| KPOST \| KR_KOREA_POST \| KUEHNE \| KURASI \| KWE_GLOBAL \| KWT \| KYUNGDONG_PARCEL \| KY_EXPRESS \| LALAMOVE \| LANDMARK_GLOBAL \| LANDMARK_GLOBAL_REFERENCE \| LATVIJAS_PASTS \| LA_POSTE_SUIVI \| LBCEXPRESS_FTP \| LEADER \| LEGION_EXPRESS \| LEXSHIP \| LHT_EXPRESS \| LICCARDI_EXPRESS \| LIEFERY \| LINE \| LINKBRIDGE \| LOCUS_WEBHOOK \| LOGISTERS \| LOGISTICSWORLDWIDE_HK \| LOGISTIKA \| LOGISTYX_TRANSGROUP \| LONESTAR \| LOOMIS_EXPRESS \| LOTTE \| LTIANEXP \| LTL \| LTU_LIETUVOS \| MAGYAR_HU \| MAILAMERICAS \| MAILPLUS_JPN \| MAIL_PLUS \| MAINFREIGHT \| MAINWAY \| MATDESPATCH \| MATKAHUOLTO \| MBW \| MEX_AEROFLASH \| MEX_ESTAFETA \| MEX_REDPACK \| MEX_SENDA \| MGLOBAL \| MIKROPAKKET \| MIKROPAKKET_BE \| MILKMAN \| MORE_LINK \| MORNING_EXPRESS \| MRW_FTP \| MXE \| MX_CARGO \| MYHERMES \| MYS_AIRPAK \| MYS_EMS \| MYS_GDEX \| MYS_MYPOST_ONLINE \| MYS_MYS_POST \| MYS_SKYNET \| M_XPRESS \| NACEX \| NACEX_ES \| NANJINGWOYUAN \| NATIONAL_SAMEDAY \| NATIONEX \| NATIONWIDE_MY \| NEWAY \| NEWEGGEXPRESS \| NEWGISTICS \| NEWZEALAND_COURIERS \| NG_COURIERPLUS \| NHANS_SOLUTIONS \| NIM_EXPRESS \| NINJAVAN_MY \| NINJAVAN_SG \| NINJAVAN_THAI \| NINJAVAN_WB \| NIPOST_NG \| NLD_DHL \| NLD_GLS \| NLD_POSTNL \| NLD_TRANSMISSION \| NOVA_POSHTA \| NOVA_POSHTA_INT \| NOX_NACHTEXPRESS \| NOX_NIGHT_TIME_EXPRESS \| NTLOGISTICS_VN \| NZ_COURIER_POST \| NZ_NZ_POST \| OCS \| OCS_WORLDWIDE \| OKAYPARCEL \| OMNIPARCEL \| OMNIVA \| ONECLICK \| ONEWORLDEXPRESS \| ORANGE_DS \| OSM_WORLDWIDE \| OVERSE_EXP \| P2P_TRC \| PAACK_WEBHOOK \| PADTF \| PAGO \| PALEXPRESS \| PALLETWAYS \| PALLET_NETWORK \| PANTHER_REFERENCE \| PAN_ASIA \| PAPERFLY \| PAPER_EXPRESS \| PAQUETEXPRESS \| PARCEL2GO \| PARCELINKLOGISTICS \| PARCELLED_IN \| PARCELONE \| PARCELPAL_WEBHOOK \| PARCELPOINT \| PARCELPOST_SG \| PARCEL_2_POST \| PARKNPARCEL \| PCFCORP \| PFCEXPRESS \| PFLOGISTICS \| PHL_AIR21 \| PHL_AIRSPEED \| PHL_JAMEXPRESS \| PICKRR \| PICKUP \| PICKUPP_MYS \| PICKUPP_SGP \| PILOT_FREIGHT \| PIL_LOGISTICS \| PITNEY_BOWES \| PITTOHIO \| PIXSELL \| PLANZER \| PLUS_LOG_UK \| PL_POCZTA_POLSKA \| POL_SIODEMKA \| PONY_EXPRESS \| POSTA_PLUS \| POSTA_RO \| POSTA_UKR \| POSTEN_NORGE \| POSTI \| POSTNL_INTL_3S \| POSTNL_INT_3_S \| POSTNORD_LOGISTICS \| POSTNORD_LOGISTICS_DK \| POSTUR_IS \| POST_SERBIA \| POST_SLOVENIA \| PRESIDENT_TRANS \| PRESSIODE \| PRIMAMULTICIPTA \| PROMEDDELIVERY \| PRT_CHRONOPOST \| PRT_CTT \| PRT_INT_SEUR \| PRT_SEUR \| PTS \| PTT_POST \| QUANTIUM \| QWINTRY \| RABEN_GROUP \| RAF_PH \| RAIDEREX \| RAM \| RCL \| RINCOS \| RL_US \| ROADBULL \| ROADRUNNER_FREIGHT \| ROCKET_PARCEL \| ROUTIFIC_WEBHOOK \| ROYAL_MAIL \| RPD2MAN \| RPX \| RPXLOGISTICS \| RPX_ID \| RUSSIAN_POST \| RUSTON \| RZYEXPRESS \| SAIA_FREIGHT \| SAILPOST \| SAP_EXPRESS \| SAU_SAUDI_POST \| SCUDEX_EXPRESS \| SDA_IT \| SDH_SCM \| SEFL \| SEINO \| SEKOLOGISTICS \| SEKO_SFTP \| SENDING \| SENDIT \| SENDLE \| SEUR_ES \| SEUR_SP_API \| SFB2C \| SFCSERVICE \| SFC_LOGISTICS \| SFPLUS_WEBHOOK \| SF_EX \| SG_DETRACK \| SG_QXPRESS \| SG_SG_POST \| SG_SPEEDPOST \| SG_TAQBIN \| SHENZHEN \| SHIPENTEGRA \| SHIPPIT \| SHIPTER \| SHIPTOR \| SHIP_GATE \| SHIP_IT_ASIA \| SHOPFANS \| SHREENANDANCOURIER \| SHREETIRUPATI \| SHREE_ANJANI_COURIER \| SHREE_MARUTI \| SIMPLYPOST \| SINOTRANS \| SIN_GLBL \| SKYBOX \| SKYNET_UAE \| SKYNET_UK \| SKYNET_WORLDWIDE \| SKYNET_ZA \| SKY_POSTAL \| SK_POSTA \| SMG_EXPRESS \| SMOOTH \| SMSA_EXPRESS \| SONICTL \| SOUTH_AFRICAN_POST_OFFICE \| SPEEDCOURIERS_GR \| SPEEDEE \| SPEEDEXCOURIER \| SPOTON \| SPRING_GDS \| SRE_KOREA \| STALLIONEXPRESS \| STARKEN \| STAR_TRACK_EXPRESS \| STAR_TRACK_NEXT_FLIGHT \| STEPFORWARDFS \| STONE3PL \| STRECK_TRANSPORT \| SUTTON \| SWE_POSTNORD \| SWISHIP_DE \| SWISS_POST_FTP \| SYPOST \| SZENDEX \| TAQBIN_HK \| TAQBIN_MY \| TARRIVE \| TAZMANIAN_FREIGHT \| TCK_EXPRESS \| TCS \| TFM \| TFORCE_FINALMILE \| THABIT_LOGISTICS \| THA_DYNAMIC_LOGISTICS \| THA_KERRY \| THA_THAILAND_POST \| THECOURIERGUY \| THEDELIVERYGROUP \| THENILE_WEBHOOK \| TIGFREIGHT \| TIKI_ID \| TIPSA \| TNT \| TNT_CLICK_IT \| TNT_FR \| TNT_NL \| TNT_REFR \| TNT_UK \| TNT_UK_REFR \| TOLL \| TOLL_NZ \| TOLOS \| TOPHATTEREXPRESS \| TOPYOU \| TOTAL_EXPRESS \| TOURLINE \| TRACKON \| TRANS_KARGO \| TRUMPCARD \| TRUNKRS_WEBHOOK \| TUFFNELLS_REFERENCE \| TWO_GO \| TW_TAIWAN_POST \| UBI_LOGISTICS \| UC_EXPRE \| UDS \| UK_COLLECTPLUS \| UK_DPD \| UK_NIGHTLINE \| UK_PARCELFORCE \| UK_UK_MAIL \| UK_XDP \| UK_YODEL \| UPS \| UPS_FREIGHT \| UPS_MAIL_INNOVATIONS \| UPS_REFERENCE \| USF_REDDAWAY \| USHIP \| USPS \| US_GLOBEGISTICS \| US_LASERSHIP \| US_OLD_DOMINION \| US_ONTRAC \| US_YRC \| VAMOX \| VENIPAK \| VIAEUROPE \| VIA_EXPRESS \| VIRTRANSPORT \| VIWO \| VNM_VIETNAM_POST \| VNM_VIETTELPOST \| WAHANA_ID \| WANBEXPRESS \| WEASHIP \| WEPOST \| WESTBANK_COURIER \| WESTGATE_GL \| WHISTL \| WINIT \| WISELOADS \| WISE_EXPRESS \| WIZMO \| WMG \| WNDIRECT \| WYNGS \| XDE_WEBHOOK \| XDP_UK_REFERENCE \| XL_EXPRESS \| XPERT_DELIVERY \| XPOST \| XPO_LOGISTICS \| XPRESSEN_DK \| XQ_EXPRESS \| YAKIT \| YANWEN \| YDH_EXPRESS \| YINGNUO_LOGISTICS \| YODEL_DIR \| YODEL_INTNL \| YTO \| YUNEXPRESS \| YURTICI_KARGO \| YUSEN \| ZAJIL_EXPRESS \| ZA_COURIERIT \| ZA_FASTWAY \| ZA_SPECIALISED_FREIGHT \| ZEEK_2_DOOR \| ZELERIS \| ZEPTO_EXPRESS \| ZES_EXPRESS \| ZIINGFINALMILE \| ZINC \| ZJS_EXPRESS \| ZTO_EXPRESS \| ZYLLEM` | No | The carrier for the shipment. Carrier information is required when tracking\_number is provided. Some carriers have a global version as well as local subsidiaries. The subsidiaries are repeated over many countries and might also have an entry in the global list. Choose the carrier for your country. If the carrier is not available for your country, choose the global version of the carrier. If your carrier name is not in the list, set `carrier` to `OTHER` and set carrier name in `carrier_name_other`. For allowed values, see Carriers. |
| `carrier_name_other` | `string` | No | The name of the carrier for the shipment. Provide this value only if the carrier parameter is OTHER. |
| `notify_buyer` | `boolean` | No | If true , sends an email notification to the buyer of the PayPal transaction. The email contains the tracking information that was uploaded through the API. |
| `last_updated_time` | `string` | No | The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional.Note: The regular expression provides guidance but does not reject all invalid dates. |
| `shipment_direction` | `FORWARD \| RETURN` | No | To denote whether the shipment is sent forward to the receiver or returned back. |
| `tracking_url` | `string` | No | Tracking Link of the shipment. |
| `links` | `object[]` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href: string,
>   rel: string,
>   method?: GET | POST | PUT | DELETE | HEAD | CONNECT | OPTIONS | PATCH
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | PayPal accepted the call; it answered with no body (204). |

***

## Transactions

### list

`transactions.list`

List transactions for up to 31 days, with filters (transaction id or type, status, amount, currency, dates)

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.transactions.list({
	start_date: '2026-11-01T00:00:00-07:00',
	end_date: '2026-11-27T23:59:59-07:00',
	fields: 'all',
	page_size: 100,
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `transaction_id` | `string` | No | Filters the transactions in the response by a PayPal transaction ID. A valid transaction ID is 17 characters long, except for an order ID, which is 19 characters long.Note: A transaction ID is not unique in the reporting system. The response can list two transactions with the same ID. One transaction can be balance affecting while the other is non-balance affecting. |
| `transaction_type` | `string` | No | Filters the transactions in the response by a PayPal transaction event code. See [Transaction event codes](https://docs.corsair.dev/docs/integration/direct/transaction-search/transaction-event-codes/). |
| `transaction_status` | `string` | No | Filters the transactions in the response by a PayPal transaction status code. Value is:Status codeDescriptionDPayPal or merchant rules denied the transaction.PThe transaction is pending. The transaction was created but waits for another payment process to complete, such as an ACH transaction, before the status changes to S.SThe transaction successfully completed without a denial and after any pending statuses.VA successful transaction was reversed and funds were refunded to the original sender. |
| `transaction_amount` | `string` | No | Filters the transactions in the response by a gross transaction amount range. Specify the range as `TO`, where `is the lower limit of the gross PayPal transaction amount and` is the upper limit of the gross transaction amount. Specify the amounts in lower denominations. For example, to search for transactions from $5.00 to $10.05, specify `[500 TO 1005]`.Note:The values must be URL encoded. |
| `transaction_currency` | `string` | No | Filters the transactions in the response by a [three-character ISO-4217 currency code](https://docs.corsair.dev/api/rest/reference/currency-codes/) for the PayPal transaction currency. |
| `start_date` | `string` | Yes | Filters the transactions in the response by a start date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required. Fractional seconds are optional. |
| `end_date` | `string` | Yes | Filters the transactions in the response by an end date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required. Fractional seconds are optional. The maximum supported range is 31 days. |
| `payment_instrument_type` | `string` | No | Filters the transactions in the response by a payment instrument type. Value is either:CREDITCARD. Returns a direct credit card transaction with a corresponding value.DEBITCARD. Returns a debit card transaction with a corresponding value.If you omit this parameter, the API does not apply this filter. |
| `store_id` | `string` | No | Filters the transactions in the response by a store ID. |
| `terminal_id` | `string` | No | Filters the transactions in the response by a terminal ID. |
| `fields` | `string` | No | Indicates which fields appear in the response. Value is a single field or a comma-separated list of fields. The transaction\_info value returns only the transaction details in the response. To include all fields in the response, specify fields=all. Valid fields are:transaction\_info. The transaction information. Includes the ID of the PayPal account of the payee, the PayPal-generated transaction ID, the PayPal-generated base ID, the PayPal reference ID type, the transaction event code, the date and time when the transaction was initiated and was last updated, the transaction amounts including the PayPal fee, any discounts, insurance, the transaction status, and other information about the transaction.payer\_info. The payer information. Includes the PayPal customer account ID and the payer's email address, primary phone number, name, country code, address, and whether the payer is verified or unverified.shipping\_info. The shipping information. Includes the recipient's name, the shipping method for this order, the shipping address for this order, and the secondary address associated with this order.auction\_info. The auction information. Includes the name of the auction site, the auction site URL, the ID of the customer who makes the purchase in the auction, and the date and time when the auction closes.cart\_info. The cart information. Includes an array of item details, whether the item amount or the shipping amount already includes tax, and the ID of the invoice for PayPal-generated invoices.incentive\_info. An array of incentive detail objects. Each object includes the incentive, such as a special offer or coupon, the incentive amount, and the incentive program code that identifies a merchant loyalty or incentive program.store\_info. The store information. Includes the ID of the merchant store and the terminal ID for the checkout stand in the merchant store. |
| `balance_affecting_records_only` | `string` | No | Indicates whether the response includes only balance-impacting transactions or all transactions. Value is either:Y. The default. The response includes only balance transactions.N. The response includes all transactions. |
| `page_size` | `number` | No | The number of items to return in the response. So, the combination of `page=1` and `page_size=20` returns the first 20 items. The combination of `page=2` and `page_size=20` returns the next 20 items. |
| `page` | `number` | No | The zero-relative start index of the entire list of items that are returned in the response. So, the combination of `page=1` and `page_size=20` returns the first 20 items. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `transaction_details` | `object[] \| null` | No | An array of transaction detail objects. |
| `account_number` | `string \| null` | No | The merchant account number. |
| `start_date` | `string \| null` | No | The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional.Note: The regular expression provides guidance but does not reject all invalid dates. |
| `end_date` | `string \| null` | No | The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional.Note: The regular expression provides guidance but does not reject all invalid dates. |
| `last_refreshed_datetime` | `string \| null` | No | The date and time, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Seconds are required while fractional seconds are optional.Note: The regular expression provides guidance but does not reject all invalid dates. |
| `page` | `number \| null` | No | A zero-relative index of transactions. |
| `total_items` | `number \| null` | No | The total number of transactions as an integer beginning with the specified `page` in the full result and not just in this response. |
| `total_pages` | `number \| null` | No | The total number of pages, as an `integer`, when the `total_items` is divided into pages of the specified `page_size`. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/api/rest/responses/#hateoas-links). |

> [accordion] transaction\_details full type
>
> ```ts theme={null}
> {
>   transaction_info?: {
>     paypal_account_id?: string | null,
>     transaction_id?: string | null,
>     paypal_reference_id?: string | null,
>     paypal_reference_id_type?: string | null,
>     transaction_event_code?: string | null,
>     transaction_initiation_date?: string | null,
>     transaction_updated_date?: string | null,
>     transaction_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     fee_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     discount_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     insurance_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     sales_tax_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     shipping_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     shipping_discount_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     shipping_tax_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     other_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     tip_amount?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     transaction_status?: string | null,
>     transaction_subject?: string | null,
>     transaction_note?: string | null,
>     payment_tracking_id?: string | null,
>     bank_reference_id?: string | null,
>     ending_balance?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     available_balance?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     invoice_id?: string | null,
>     custom_field?: string | null,
>     protection_eligibility?: string | null,
>     credit_term?: string | null,
>     credit_transactional_fee?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     credit_promotional_fee?: {
>       currency_code?: string | null,
>       value?: string | null
>     } | null,
>     annual_percentage_rate?: string | null,
>     payment_method_type?: string | null,
>     instrument_type?: string | null,
>     instrument_sub_type?: string | null
>   } | null,
>   payer_info?: {
>     account_id?: string | null,
>     email_address?: string | null,
>     phone_number?: {
>       country_code?: string | null,
>       national_number?: string | null,
>       extension_number?: string | null
>     } | null,
>     address_status?: string | null,
>     payer_status?: string | null,
>     payer_name?: {
>       prefix?: string | null,
>       given_name?: string | null,
>       surname?: string | null,
>       middle_name?: string | null,
>       suffix?: string | null,
>       alternate_full_name?: string | null,
>       full_name?: string | null
>     } | null,
>     country_code?: string | null,
>     address?: {
>       line1?: string | null,
>       line2?: string | null,
>       city?: string | null,
>       state?: string | null,
>       country_code?: string | null,
>       postal_code?: string | null
>     } | null
>   } | null,
>   shipping_info?: {
>     name?: string | null,
>     method?: string | null,
>     address?: {
>       line1?: string | null,
>       line2?: string | null,
>       city?: string | null,
>       state?: string | null,
>       country_code?: string | null,
>       postal_code?: string | null
>     } | null,
>     secondary_shipping_address?: {
>       line1?: string | null,
>       line2?: string | null,
>       city?: string | null,
>       state?: string | null,
>       country_code?: string | null,
>       postal_code?: string | null
>     } | null
>   } | null,
>   cart_info?: {
>     item_details?: {
>       item_code?: string | null,
>       item_name?: string | null,
>       item_description?: string | null,
>       item_options?: string | null,
>       item_quantity?: string | null,
>       item_unit_price?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       item_amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       discount_amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       adjustment_amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       gift_wrap_amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       tax_percentage?: string | null,
>       tax_amounts?: {
>         tax_amount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null
>       }[] | null,
>       basic_shipping_amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       extra_shipping_amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       handling_amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       insurance_amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       total_item_amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       invoice_number?: string | null,
>       checkout_options?: {
>         checkout_option_name?: string | null,
>         checkout_option_value?: string | null
>       }[] | null
>     }[] | null,
>     tax_inclusive?: boolean | null,
>     paypal_invoice_id?: string | null
>   } | null,
>   store_info?: {
>     store_id?: string | null,
>     terminal_id?: string | null
>   } | null,
>   auction_info?: {
>     auction_site?: string | null,
>     auction_item_site?: string | null,
>     auction_buyer_id?: string | null,
>     auction_closing_date?: string | null
>   } | null,
>   incentive_info?: {
>     incentive_details?: {
>       incentive_type?: string | null,
>       incentive_code?: string | null,
>       incentive_amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       incentive_program_code?: string | null
>     }[] | null
>   } | null
> }[] | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

## Vault

### paymentTokens.create

`vault.paymentTokens.create`

Create payment token for a given payment source

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.vault.paymentTokens.create({
	payment_source: {},
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `paypal_request_id` | `string` | No | The server stores keys for 3 hours. |
| `customer` | `object` | No | This object defines a customer in your system. Use it to manage customer profiles, save payment methods and contact details. |
| `payment_source` | `object` | Yes | The payment method to vault with the instrument details. |

> [accordion] customer full type
>
> ```ts theme={null}
> {
>   id?: string,
>   merchant_customer_id?: string
> }
> ```

> [accordion] payment\_source full type
>
> ```ts theme={null}
> {
>   card?: {
>     name?: string,
>     number?: string,
>     expiry?: string,
>     security_code?: string,
>     brand?: VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | UNKNOWN,
>     billing_address?: {
>       address_line_1?: string,
>       address_line_2?: string,
>       admin_area_2?: string,
>       admin_area_1?: string,
>       postal_code?: string,
>       country_code: string
>     },
>     network_transaction_reference?: any
>   },
>   token?: {
>     id: string,
>     type: SETUP_TOKEN
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The PayPal-generated ID for the vault token. |
| `customer` | `object \| null` | No | This object defines a customer in your system. Use it to manage customer profiles, save payment methods and contact details. |
| `payment_source` | `object \| null` | No | The vaulted payment method details. |
| `links` | `object[] \| null` | No | An array of related [HATEOAS links](https://docs.corsair.dev/api/rest/responses/#hateoas). |

> [accordion] customer full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   merchant_customer_id?: string | null
> } | null
> ```

> [accordion] payment\_source full type
>
> ```ts theme={null}
> {
>   card?: {
>     name?: string | null,
>     last_digits?: string | null,
>     brand?: string | null,
>     expiry?: string | null,
>     billing_address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null,
>       id?: string | null
>     } | null,
>     verification_status?: string | null,
>     verification?: {
>       network_transaction_id?: string | null,
>       date?: string | null,
>       network?: string | null,
>       time?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       processor_response?: {
>         avs_code?: string | null,
>         cvv_code?: string | null
>       } | null,
>       three_d_secure?: any | null
>     } | null,
>     network_transaction_reference?: {
>       id?: string | null,
>       date?: string | null,
>       network?: string | null,
>       time?: string | null
>     } | null,
>     authentication_result?: {
>       three_d_secure?: {
>         authentication_status?: string | null,
>         enrollment_status?: string | null,
>         authentication_id?: string | null
>       } | null
>     } | null,
>     bin_details?: {
>       bin?: string | null,
>       issuing_bank?: string | null,
>       bin_country_code?: string | null,
>       products?: string[] | null
>     } | null,
>     type?: string | null,
>     network_token?: any | null
>   } | null,
>   paypal?: ((((((
>     {
>       description?: string | null,
>       usage_pattern?: string | null,
>       shipping?: {
>         name?: {
>           full_name?: string | null
>         } | null,
>         phone_number?: {
>           country_code?: string | null,
>           national_number?: string | null
>         } | null,
>         type?: string | null,
>         address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null
>         } | null
>       } | null,
>       permit_multiple_payment_tokens?: boolean | null,
>       usage_type?: string | null,
>       customer_type?: string | null
>     }& any
>   )& any)& {
>     email_address?: string | null,
>     payer_id?: string | null
>   })& {
>     name?: {
>       given_name?: string | null,
>       surname?: string | null
>     } | null,
>     phone?: {
>       phone_type?: string | null,
>       phone_number?: {
>         national_number?: string | null
>       } | null
>     } | null,
>     address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null
>     } | null
>   })& {
>   })& {
>     account_id?: string | null,
>     phone_number?: {
>       country_code?: string | null,
>       national_number?: string | null,
>       extension_number?: string | null
>     } | null
>   })& {
>   } | null,
>   venmo?: ((((((
>     {
>       description?: string | null,
>       usage_pattern?: string | null,
>       shipping?: {
>         name?: {
>           full_name?: string | null
>         } | null,
>         phone_number?: {
>           country_code?: string | null,
>           national_number?: string | null
>         } | null,
>         type?: string | null,
>         address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null
>         } | null
>       } | null,
>       permit_multiple_payment_tokens?: boolean | null,
>       usage_type?: string | null,
>       customer_type?: string | null
>     }& any
>   )& any)& {
>     email_address?: string | null,
>     payer_id?: string | null
>   })& {
>     name?: {
>       given_name?: string | null,
>       surname?: string | null
>     } | null,
>     phone?: {
>       phone_type?: string | null,
>       phone_number?: {
>         national_number?: string | null
>       } | null
>     } | null,
>     address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null
>     } | null
>   })& {
>   })& {
>     user_name?: string | null
>   })& {
>   } | null,
>   apple_pay?: {
>     card?: {
>       name?: string | null,
>       last_digits?: string | null,
>       type?: string | null,
>       brand?: string | null,
>       billing_address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null
>       } | null
>     } | null
>   } | null
> } | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### paymentTokens.delete

`vault.paymentTokens.delete`

Delete payment token

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.vault.paymentTokens.delete({ id: '5O190127TN364715T' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | ID of the setup token. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | PayPal accepted the call; it answered with no body (204). |

***

### paymentTokens.get

`vault.paymentTokens.get`

Retrieve a payment token

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.vault.paymentTokens.get({ id: '5O190127TN364715T' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | ID of the setup token. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The PayPal-generated ID for the vault token. |
| `customer` | `object \| null` | No | This object defines a customer in your system. Use it to manage customer profiles, save payment methods and contact details. |
| `payment_source` | `object \| null` | No | The vaulted payment method details. |
| `links` | `object[] \| null` | No | An array of related [HATEOAS links](https://docs.corsair.dev/api/rest/responses/#hateoas). |

> [accordion] customer full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   merchant_customer_id?: string | null
> } | null
> ```

> [accordion] payment\_source full type
>
> ```ts theme={null}
> {
>   card?: {
>     name?: string | null,
>     last_digits?: string | null,
>     brand?: string | null,
>     expiry?: string | null,
>     billing_address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null,
>       id?: string | null
>     } | null,
>     verification_status?: string | null,
>     verification?: {
>       network_transaction_id?: string | null,
>       date?: string | null,
>       network?: string | null,
>       time?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       processor_response?: {
>         avs_code?: string | null,
>         cvv_code?: string | null
>       } | null,
>       three_d_secure?: any | null
>     } | null,
>     network_transaction_reference?: {
>       id?: string | null,
>       date?: string | null,
>       network?: string | null,
>       time?: string | null
>     } | null,
>     authentication_result?: {
>       three_d_secure?: {
>         authentication_status?: string | null,
>         enrollment_status?: string | null,
>         authentication_id?: string | null
>       } | null
>     } | null,
>     bin_details?: {
>       bin?: string | null,
>       issuing_bank?: string | null,
>       bin_country_code?: string | null,
>       products?: string[] | null
>     } | null,
>     type?: string | null,
>     network_token?: any | null
>   } | null,
>   paypal?: ((((((
>     {
>       description?: string | null,
>       usage_pattern?: string | null,
>       shipping?: {
>         name?: {
>           full_name?: string | null
>         } | null,
>         phone_number?: {
>           country_code?: string | null,
>           national_number?: string | null
>         } | null,
>         type?: string | null,
>         address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null
>         } | null
>       } | null,
>       permit_multiple_payment_tokens?: boolean | null,
>       usage_type?: string | null,
>       customer_type?: string | null
>     }& any
>   )& any)& {
>     email_address?: string | null,
>     payer_id?: string | null
>   })& {
>     name?: {
>       given_name?: string | null,
>       surname?: string | null
>     } | null,
>     phone?: {
>       phone_type?: string | null,
>       phone_number?: {
>         national_number?: string | null
>       } | null
>     } | null,
>     address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null
>     } | null
>   })& {
>   })& {
>     account_id?: string | null,
>     phone_number?: {
>       country_code?: string | null,
>       national_number?: string | null,
>       extension_number?: string | null
>     } | null
>   })& {
>   } | null,
>   venmo?: ((((((
>     {
>       description?: string | null,
>       usage_pattern?: string | null,
>       shipping?: {
>         name?: {
>           full_name?: string | null
>         } | null,
>         phone_number?: {
>           country_code?: string | null,
>           national_number?: string | null
>         } | null,
>         type?: string | null,
>         address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null
>         } | null
>       } | null,
>       permit_multiple_payment_tokens?: boolean | null,
>       usage_type?: string | null,
>       customer_type?: string | null
>     }& any
>   )& any)& {
>     email_address?: string | null,
>     payer_id?: string | null
>   })& {
>     name?: {
>       given_name?: string | null,
>       surname?: string | null
>     } | null,
>     phone?: {
>       phone_type?: string | null,
>       phone_number?: {
>         national_number?: string | null
>       } | null
>     } | null,
>     address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null
>     } | null
>   })& {
>   })& {
>     user_name?: string | null
>   })& {
>   } | null,
>   apple_pay?: {
>     card?: {
>       name?: string | null,
>       last_digits?: string | null,
>       type?: string | null,
>       brand?: string | null,
>       billing_address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null
>       } | null
>     } | null
>   } | null
> } | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### paymentTokens.list

`vault.paymentTokens.list`

List all payment tokens

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.vault.paymentTokens.list({ customer_id: 'example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `customer_id` | `string` | Yes | A unique identifier representing a specific customer in merchant's/partner's system or records. |
| `page_size` | `number` | No | A non-negative, non-zero integer indicating the maximum number of results to return at one time. |
| `page` | `number` | No | A non-negative, non-zero integer representing the page of the results. |
| `total_required` | `boolean` | No | A boolean indicating total number of items (total\_items) and pages (total\_pages) are expected to be returned in the response. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `total_items` | `number \| null` | No | Total number of items. |
| `total_pages` | `number \| null` | No | Total number of pages. |
| `customer` | `object \| null` | No | This object defines a customer in your system. Use it to manage customer profiles, save payment methods and contact details. |
| `payment_tokens` | `object[] \| null` | No | — |
| `links` | `object[] \| null` | No | An array of related [HATEOAS links](https://docs.corsair.dev/api/rest/responses/#hateoas). |

> [accordion] customer full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   merchant_customer_id?: string | null
> } | null
> ```

> [accordion] payment\_tokens full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   customer?: {
>     id?: string | null,
>     merchant_customer_id?: string | null
>   } | null,
>   payment_source?: {
>     card?: {
>       name?: string | null,
>       last_digits?: string | null,
>       brand?: string | null,
>       expiry?: string | null,
>       billing_address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null,
>         id?: string | null
>       } | null,
>       verification_status?: string | null,
>       verification?: {
>         network_transaction_id?: string | null,
>         date?: string | null,
>         network?: string | null,
>         time?: string | null,
>         amount?: {
>           currency_code?: string | null,
>           value?: string | null
>         } | null,
>         processor_response?: {
>           avs_code?: string | null,
>           cvv_code?: string | null
>         } | null,
>         three_d_secure?: any | null
>       } | null,
>       network_transaction_reference?: {
>         id?: string | null,
>         date?: string | null,
>         network?: string | null,
>         time?: string | null
>       } | null,
>       authentication_result?: {
>         three_d_secure?: {
>           authentication_status?: string | null,
>           enrollment_status?: string | null,
>           authentication_id?: string | null
>         } | null
>       } | null,
>       bin_details?: {
>         bin?: string | null,
>         issuing_bank?: string | null,
>         bin_country_code?: string | null,
>         products?: string[] | null
>       } | null,
>       type?: string | null,
>       network_token?: any | null
>     } | null,
>     paypal?: ((((((
>       {
>         description?: string | null,
>         usage_pattern?: string | null,
>         shipping?: {
>           name?: {
>             full_name?: string | null
>           } | null,
>           phone_number?: {
>             country_code?: string | null,
>             national_number?: string | null
>           } | null,
>           type?: string | null,
>           address?: {
>             address_line_1?: string | null,
>             address_line_2?: string | null,
>             admin_area_2?: string | null,
>             admin_area_1?: string | null,
>             postal_code?: string | null,
>             country_code?: string | null
>           } | null
>         } | null,
>         permit_multiple_payment_tokens?: boolean | null,
>         usage_type?: string | null,
>         customer_type?: string | null
>       }& any
>     )& any)& {
>       email_address?: string | null,
>       payer_id?: string | null
>     })& {
>       name?: {
>         given_name?: string | null,
>         surname?: string | null
>       } | null,
>       phone?: {
>         phone_type?: string | null,
>         phone_number?: {
>           national_number?: string | null
>         } | null
>       } | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null
>       } | null
>     })& {
>     })& {
>       account_id?: string | null,
>       phone_number?: {
>         country_code?: string | null,
>         national_number?: string | null,
>         extension_number?: string | null
>       } | null
>     })& {
>     } | null,
>     venmo?: ((((((
>       {
>         description?: string | null,
>         usage_pattern?: string | null,
>         shipping?: {
>           name?: {
>             full_name?: string | null
>           } | null,
>           phone_number?: {
>             country_code?: string | null,
>             national_number?: string | null
>           } | null,
>           type?: string | null,
>           address?: {
>             address_line_1?: string | null,
>             address_line_2?: string | null,
>             admin_area_2?: string | null,
>             admin_area_1?: string | null,
>             postal_code?: string | null,
>             country_code?: string | null
>           } | null
>         } | null,
>         permit_multiple_payment_tokens?: boolean | null,
>         usage_type?: string | null,
>         customer_type?: string | null
>       }& any
>     )& any)& {
>       email_address?: string | null,
>       payer_id?: string | null
>     })& {
>       name?: {
>         given_name?: string | null,
>         surname?: string | null
>       } | null,
>       phone?: {
>         phone_type?: string | null,
>         phone_number?: {
>           national_number?: string | null
>         } | null
>       } | null,
>       address?: {
>         address_line_1?: string | null,
>         address_line_2?: string | null,
>         admin_area_2?: string | null,
>         admin_area_1?: string | null,
>         postal_code?: string | null,
>         country_code?: string | null
>       } | null
>     })& {
>     })& {
>       user_name?: string | null
>     })& {
>     } | null,
>     apple_pay?: {
>       card?: {
>         name?: string | null,
>         last_digits?: string | null,
>         type?: string | null,
>         brand?: string | null,
>         billing_address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null
>         } | null
>       } | null
>     } | null
>   } | null,
>   links?: {
>     href?: string | null,
>     rel?: string | null,
>     method?: string | null
>   }[] | null
> }[] | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### setupTokens.create

`vault.setupTokens.create`

Create a setup token

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.vault.setupTokens.create({
	payment_source: {},
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `paypal_request_id` | `string` | No | The server stores keys for 3 hours. |
| `customer` | `object` | No | This object defines a customer in your system. Use it to manage customer profiles, save payment methods and contact details. |
| `payment_source` | `object` | Yes | The payment method to vault with the instrument details. |

> [accordion] customer full type
>
> ```ts theme={null}
> {
>   id?: string,
>   merchant_customer_id?: string
> }
> ```

> [accordion] payment\_source full type
>
> ```ts theme={null}
> {
>   card?: {
>     name?: string,
>     number?: string,
>     expiry?: string,
>     security_code?: string,
>     brand?: VISA | MASTERCARD | DISCOVER | AMEX | SOLO | JCB | STAR | DELTA | SWITCH | MAESTRO | CB_NATIONALE | CONFIGOGA | CONFIDIS | ELECTRON | CETELEM | CHINA_UNION_PAY | DINERS | ELO | HIPER | HIPERCARD | RUPAY | GE | SYNCHRONY | EFTPOS | UNKNOWN,
>     billing_address?: {
>       address_line_1?: string,
>       address_line_2?: string,
>       admin_area_2?: string,
>       admin_area_1?: string,
>       postal_code?: string,
>       country_code: string
>     },
>     verification_method?: SCA_WHEN_REQUIRED | SCA_ALWAYS,
>     experience_context?: {
>       brand_name?: string,
>       locale?: string,
>       return_url?: string,
>       cancel_url?: string,
>       vault_instruction?: ON_CREATE_PAYMENT_TOKENS | ON_PAYER_APPROVAL
>     },
>     network_transaction_reference?: any
>   },
>   paypal?: {
>     description?: string,
>     usage_pattern?: IMMEDIATE | DEFERRED | RECURRING_PREPAID | RECURRING_POSTPAID | THRESHOLD_PREPAID | THRESHOLD_POSTPAID | UNSCHEDULED_POSTPAID | UNSCHEDULED_PREPAID | SUBSCRIPTION_PREPAID | SUBSCRIPTION_POSTPAID | INSTALLMENT_POSTPAID | INSTALLMENT_PREPAID,
>     shipping?: {
>       name?: {
>         full_name?: string
>       },
>       phone_number?: {
>         country_code: string,
>         national_number: string
>       },
>       type?: SHIPPING | PICKUP_IN_PERSON | PICKUP_IN_STORE | PICKUP_FROM_PERSON,
>       address?: {
>         address_line_1?: string,
>         address_line_2?: string,
>         admin_area_2?: string,
>         admin_area_1?: string,
>         postal_code?: string,
>         country_code: string
>       }
>     },
>     permit_multiple_payment_tokens?: boolean,
>     usage_type?: MERCHANT | PLATFORM,
>     customer_type?: CONSUMER | BUSINESS,
>     billing_plan?: {
>       billing_cycles: {
>         tenure_type: REGULAR | TRIAL,
>         pricing_scheme?: {
>           price?: {
>             currency_code: string,
>             value: string
>           },
>           pricing_model: FIXED | VARIABLE | AUTO_RELOAD,
>           reload_threshold_amount?: {
>             currency_code: string,
>             value: string
>           }
>         },
>         frequency?: any,
>         total_cycles?: number,
>         sequence?: number,
>         start_date?: string
>       }[],
>       product?: any,
>       one_time_charges: {
>         setup_fee?: {
>           currency_code: string,
>           value: string
>         },
>         shipping_amount?: {
>           currency_code: string,
>           value: string
>         },
>         taxes?: {
>           currency_code: string,
>           value: string
>         },
>         product_price?: {
>           currency_code: string,
>           value: string
>         },
>         total_amount: {
>           currency_code: string,
>           value: string
>         }
>       },
>       name?: string
>     },
>     experience_context?: {
>       brand_name?: string,
>       locale?: string,
>       return_url?: string,
>       cancel_url?: string,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       vault_instruction?: ON_CREATE_PAYMENT_TOKENS | ON_PAYER_APPROVAL
>     }
>   },
>   venmo?: {
>     description?: string,
>     usage_pattern?: IMMEDIATE | DEFERRED | RECURRING_PREPAID | RECURRING_POSTPAID | THRESHOLD_PREPAID | THRESHOLD_POSTPAID | UNSCHEDULED_POSTPAID | UNSCHEDULED_PREPAID | SUBSCRIPTION_PREPAID | SUBSCRIPTION_POSTPAID | INSTALLMENT_POSTPAID | INSTALLMENT_PREPAID,
>     shipping?: {
>       name?: {
>         full_name?: string
>       },
>       phone_number?: {
>         country_code: string,
>         national_number: string
>       },
>       type?: SHIPPING | PICKUP_IN_PERSON | PICKUP_IN_STORE | PICKUP_FROM_PERSON,
>       address?: {
>         address_line_1?: string,
>         address_line_2?: string,
>         admin_area_2?: string,
>         admin_area_1?: string,
>         postal_code?: string,
>         country_code: string
>       }
>     },
>     permit_multiple_payment_tokens?: boolean,
>     usage_type?: MERCHANT | PLATFORM,
>     customer_type?: CONSUMER | BUSINESS,
>     experience_context?: {
>       brand_name?: string,
>       shipping_preference?: GET_FROM_FILE | NO_SHIPPING | SET_PROVIDED_ADDRESS,
>       vault_instruction?: ON_CREATE_PAYMENT_TOKENS | ON_PAYER_APPROVAL
>     }
>   },
>   token?: {
>     id: string,
>     type: SETUP_TOKEN
>   }
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The PayPal-generated ID for the vault token. |
| `customer` | `object \| null` | No | This object defines a customer in your system. Use it to manage customer profiles, save payment methods and contact details. |
| `status` | `string \| null` | No | The status of the payment token. |
| `payment_source` | `object \| null` | No | The setup payment method details. |
| `links` | `object[] \| null` | No | An array of related [HATEOAS links](https://docs.corsair.dev/api/rest/responses/#hateoas). |

> [accordion] customer full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   merchant_customer_id?: string | null
> } | null
> ```

> [accordion] payment\_source full type
>
> ```ts theme={null}
> {
>   card?: {
>     name?: string | null,
>     last_digits?: string | null,
>     brand?: string | null,
>     expiry?: string | null,
>     billing_address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null,
>       id?: string | null
>     } | null,
>     verification_status?: string | null,
>     verification?: {
>       network_transaction_id?: string | null,
>       date?: string | null,
>       network?: string | null,
>       time?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       processor_response?: {
>         avs_code?: string | null,
>         cvv_code?: string | null
>       } | null,
>       three_d_secure?: any | null
>     } | null,
>     network_transaction_reference?: {
>       id?: string | null,
>       date?: string | null,
>       network?: string | null,
>       time?: string | null
>     } | null,
>     authentication_result?: {
>       three_d_secure?: {
>         authentication_status?: string | null,
>         enrollment_status?: string | null,
>         authentication_id?: string | null
>       } | null
>     } | null,
>     bin_details?: {
>       bin?: string | null,
>       issuing_bank?: string | null,
>       bin_country_code?: string | null,
>       products?: string[] | null
>     } | null,
>     type?: string | null
>   } | null,
>   paypal?: ((((((
>     {
>       description?: string | null,
>       usage_pattern?: string | null,
>       shipping?: {
>         name?: {
>           full_name?: string | null
>         } | null,
>         phone_number?: {
>           country_code?: string | null,
>           national_number?: string | null
>         } | null,
>         type?: string | null,
>         address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null
>         } | null
>       } | null,
>       permit_multiple_payment_tokens?: boolean | null,
>       usage_type?: string | null,
>       customer_type?: string | null
>     }& any
>   )& any)& {
>     email_address?: string | null,
>     payer_id?: string | null
>   })& {
>     name?: {
>       given_name?: string | null,
>       surname?: string | null
>     } | null,
>     phone?: {
>       phone_type?: string | null,
>       phone_number?: {
>         national_number?: string | null
>       } | null
>     } | null,
>     address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null
>     } | null
>   })& {
>   })& {
>     account_id?: string | null,
>     phone_number?: {
>       country_code?: string | null,
>       national_number?: string | null,
>       extension_number?: string | null
>     } | null
>   })& {
>   } | null,
>   venmo?: ((((((
>     {
>       description?: string | null,
>       usage_pattern?: string | null,
>       shipping?: {
>         name?: {
>           full_name?: string | null
>         } | null,
>         phone_number?: {
>           country_code?: string | null,
>           national_number?: string | null
>         } | null,
>         type?: string | null,
>         address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null
>         } | null
>       } | null,
>       permit_multiple_payment_tokens?: boolean | null,
>       usage_type?: string | null,
>       customer_type?: string | null
>     }& any
>   )& any)& {
>     email_address?: string | null,
>     payer_id?: string | null
>   })& {
>     name?: {
>       given_name?: string | null,
>       surname?: string | null
>     } | null,
>     phone?: {
>       phone_type?: string | null,
>       phone_number?: {
>         national_number?: string | null
>       } | null
>     } | null,
>     address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null
>     } | null
>   })& {
>   })& {
>     user_name?: string | null
>   })& {
>   } | null
> } | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### setupTokens.get

`vault.setupTokens.get`

Retrieve a setup token

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.vault.setupTokens.get({ id: '5O190127TN364715T' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | ID of the setup token. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The PayPal-generated ID for the vault token. |
| `customer` | `object \| null` | No | This object defines a customer in your system. Use it to manage customer profiles, save payment methods and contact details. |
| `status` | `string \| null` | No | The status of the payment token. |
| `payment_source` | `object \| null` | No | The setup payment method details. |
| `links` | `object[] \| null` | No | An array of related [HATEOAS links](https://docs.corsair.dev/api/rest/responses/#hateoas). |

> [accordion] customer full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   merchant_customer_id?: string | null
> } | null
> ```

> [accordion] payment\_source full type
>
> ```ts theme={null}
> {
>   card?: {
>     name?: string | null,
>     last_digits?: string | null,
>     brand?: string | null,
>     expiry?: string | null,
>     billing_address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null,
>       id?: string | null
>     } | null,
>     verification_status?: string | null,
>     verification?: {
>       network_transaction_id?: string | null,
>       date?: string | null,
>       network?: string | null,
>       time?: string | null,
>       amount?: {
>         currency_code?: string | null,
>         value?: string | null
>       } | null,
>       processor_response?: {
>         avs_code?: string | null,
>         cvv_code?: string | null
>       } | null,
>       three_d_secure?: any | null
>     } | null,
>     network_transaction_reference?: {
>       id?: string | null,
>       date?: string | null,
>       network?: string | null,
>       time?: string | null
>     } | null,
>     authentication_result?: {
>       three_d_secure?: {
>         authentication_status?: string | null,
>         enrollment_status?: string | null,
>         authentication_id?: string | null
>       } | null
>     } | null,
>     bin_details?: {
>       bin?: string | null,
>       issuing_bank?: string | null,
>       bin_country_code?: string | null,
>       products?: string[] | null
>     } | null,
>     type?: string | null
>   } | null,
>   paypal?: ((((((
>     {
>       description?: string | null,
>       usage_pattern?: string | null,
>       shipping?: {
>         name?: {
>           full_name?: string | null
>         } | null,
>         phone_number?: {
>           country_code?: string | null,
>           national_number?: string | null
>         } | null,
>         type?: string | null,
>         address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null
>         } | null
>       } | null,
>       permit_multiple_payment_tokens?: boolean | null,
>       usage_type?: string | null,
>       customer_type?: string | null
>     }& any
>   )& any)& {
>     email_address?: string | null,
>     payer_id?: string | null
>   })& {
>     name?: {
>       given_name?: string | null,
>       surname?: string | null
>     } | null,
>     phone?: {
>       phone_type?: string | null,
>       phone_number?: {
>         national_number?: string | null
>       } | null
>     } | null,
>     address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null
>     } | null
>   })& {
>   })& {
>     account_id?: string | null,
>     phone_number?: {
>       country_code?: string | null,
>       national_number?: string | null,
>       extension_number?: string | null
>     } | null
>   })& {
>   } | null,
>   venmo?: ((((((
>     {
>       description?: string | null,
>       usage_pattern?: string | null,
>       shipping?: {
>         name?: {
>           full_name?: string | null
>         } | null,
>         phone_number?: {
>           country_code?: string | null,
>           national_number?: string | null
>         } | null,
>         type?: string | null,
>         address?: {
>           address_line_1?: string | null,
>           address_line_2?: string | null,
>           admin_area_2?: string | null,
>           admin_area_1?: string | null,
>           postal_code?: string | null,
>           country_code?: string | null
>         } | null
>       } | null,
>       permit_multiple_payment_tokens?: boolean | null,
>       usage_type?: string | null,
>       customer_type?: string | null
>     }& any
>   )& any)& {
>     email_address?: string | null,
>     payer_id?: string | null
>   })& {
>     name?: {
>       given_name?: string | null,
>       surname?: string | null
>     } | null,
>     phone?: {
>       phone_type?: string | null,
>       phone_number?: {
>         national_number?: string | null
>       } | null
>     } | null,
>     address?: {
>       address_line_1?: string | null,
>       address_line_2?: string | null,
>       admin_area_2?: string | null,
>       admin_area_1?: string | null,
>       postal_code?: string | null,
>       country_code?: string | null
>     } | null
>   })& {
>   })& {
>     user_name?: string | null
>   })& {
>   } | null
> } | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

## Webhooks

### availableEventTypes

`webhooks.availableEventTypes`

List available events

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.webhooks.availableEventTypes({});
```

**Input:** *empty object*

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `event_types` | `object[] \| null` | No | An array of webhook events. |

> [accordion] event\_types full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   description?: string | null,
>   status?: string | null,
>   resource_versions?: string[] | null
> }[] | null
> ```

***

### create

`webhooks.create`

Create webhook

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.webhooks.create({
	url: 'https://example.com/hooks/corsair',
	event_types: [{ name: 'PAYMENT.CAPTURE.COMPLETED' }, { name: 'CHECKOUT.ORDER.APPROVED' }],
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `url` | `string` | Yes | The URL that is configured to listen on `localhost` for incoming `POST` notification messages that contain event information. |
| `event_types` | `object[]` | Yes | An array of events to which to subscribe your webhook. To subscribe to all events, including events as they are added, specify the asterisk wild card. To replace the `event_types` array, specify the asterisk wild card. To list all supported events, list available events. |
| `links` | `object[]` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links/). |

> [accordion] event\_types full type
>
> ```ts theme={null}
> {
>   name: string,
>   resource_versions?: string[]
> }[]
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href: string,
>   rel: string,
>   method?: GET | POST | PUT | DELETE | HEAD | CONNECT | OPTIONS | PATCH
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the webhook. |
| `url` | `string \| null` | No | The URL that is configured to listen on `localhost` for incoming `POST` notification messages that contain event information. |
| `event_types` | `object[] \| null` | No | An array of events to which to subscribe your webhook. To subscribe to all events, including events as they are added, specify the asterisk wild card. To replace the `event_types` array, specify the asterisk wild card. To list all supported events, list available events. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links/). |

> [accordion] event\_types full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   description?: string | null,
>   status?: string | null,
>   resource_versions?: string[] | null
> }[] | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### delete

`webhooks.delete`

Delete webhook

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.webhooks.delete({ webhook_id: '0EH40505U7160970P' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `webhook_id` | `string` | Yes | The ID of the webhook for which to list subscriptions. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | PayPal accepted the call; it answered with no body (204). |

***

### events.get

`webhooks.events.get`

Show event notification details

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.webhooks.events.get({ event_id: 'WH6TD369808N914414D' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `event_id` | `string` | Yes | The ID of the webhook event notification to resend. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the webhook event notification. |
| `create_time` | `string \| null` | No | The date and time when the webhook event notification was created, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). |
| `resource_type` | `string \| null` | No | The name of the resource related to the webhook notification event. |
| `event_version` | `string \| null` | No | The event version in the webhook notification. |
| `event_type` | `string \| null` | No | The event that triggered the webhook event notification. |
| `summary` | `string \| null` | No | A summary description for the event notification. |
| `resource_version` | `string \| null` | No | The resource version in the webhook notification. |
| `resource` | `object \| null` | No | The resource that triggered the webhook event notification. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] resource full type
>
> ```ts theme={null}
> {
> } | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### events.list

`webhooks.events.list`

List event notifications

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.webhooks.events.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `page_size` | `number` | No | The number of webhook event notifications to return in the response. |
| `start_time` | `string` | No | Filters the webhook event notifications in the response to those created on or after this date and time and on or before the `end_time` value. Both values are in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6) format. Example: `start_time=2013-03-06T11:00:00Z`. |
| `end_time` | `string` | No | Filters the webhook event notifications in the response to those created on or after the `start_time` and on or before this date and time. Both values are in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6) format. Example: `end_time=2013-03-06T11:00:00Z`. |
| `transaction_id` | `string` | No | Filters the response to a single transaction, by ID. |
| `event_type` | `string` | No | Filters the response to a single event. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `events` | `object[] \| null` | No | An array of webhooks events. |
| `count` | `number \| null` | No | The number of items in each range of results. Note that the response might have fewer items than the requested `page_size` value. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] events full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   create_time?: string | null,
>   resource_type?: string | null,
>   event_version?: string | null,
>   event_type?: string | null,
>   summary?: string | null,
>   resource_version?: string | null,
>   resource?: {
>   } | null,
>   links?: {
>     href?: string | null,
>     rel?: string | null,
>     method?: string | null
>   }[] | null
> }[] | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### events.resend

`webhooks.events.resend`

Resend event notification

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.webhooks.events.resend({ event_id: 'WH6TD369808N914414D' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `event_id` | `string` | Yes | The ID of the webhook event notification to resend. |
| `webhook_ids` | `string[]` | No | An array of webhook account IDs. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the webhook event notification. |
| `create_time` | `string \| null` | No | The date and time when the webhook event notification was created, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). |
| `resource_type` | `string \| null` | No | The name of the resource related to the webhook notification event. |
| `event_version` | `string \| null` | No | The event version in the webhook notification. |
| `event_type` | `string \| null` | No | The event that triggered the webhook event notification. |
| `summary` | `string \| null` | No | A summary description for the event notification. |
| `resource_version` | `string \| null` | No | The resource version in the webhook notification. |
| `resource` | `object \| null` | No | The resource that triggered the webhook event notification. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] resource full type
>
> ```ts theme={null}
> {
> } | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### eventTypes

`webhooks.eventTypes`

List event subscriptions for webhook

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.webhooks.eventTypes({ webhook_id: '0EH40505U7160970P' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `webhook_id` | `string` | Yes | The ID of the webhook for which to list subscriptions. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `event_types` | `object[] \| null` | No | An array of webhook events. |

> [accordion] event\_types full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   description?: string | null,
>   status?: string | null,
>   resource_versions?: string[] | null
> }[] | null
> ```

***

### get

`webhooks.get`

Show webhook details

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.webhooks.get({ webhook_id: '0EH40505U7160970P' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `webhook_id` | `string` | Yes | The ID of the webhook for which to list subscriptions. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the webhook. |
| `url` | `string \| null` | No | The URL that is configured to listen on `localhost` for incoming `POST` notification messages that contain event information. |
| `event_types` | `object[] \| null` | No | An array of events to which to subscribe your webhook. To subscribe to all events, including events as they are added, specify the asterisk wild card. To replace the `event_types` array, specify the asterisk wild card. To list all supported events, list available events. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links/). |

> [accordion] event\_types full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   description?: string | null,
>   status?: string | null,
>   resource_versions?: string[] | null
> }[] | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### list

`webhooks.list`

List webhooks

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.webhooks.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `anchor_type` | `APPLICATION \| ACCOUNT` | No | Filters the webhooks in the response by an `anchor_id` entity type. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `webhooks` | `object[] \| null` | No | An array of webhooks. |

> [accordion] webhooks full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   url?: string | null,
>   event_types?: {
>     name?: string | null,
>     description?: string | null,
>     status?: string | null,
>     resource_versions?: string[] | null
>   }[] | null,
>   links?: {
>     href?: string | null,
>     rel?: string | null,
>     method?: string | null
>   }[] | null
> }[] | null
> ```

***

### lookups.create

`webhooks.lookups.create`

Create webhook lookup

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.webhooks.lookups.create({});
```

**Input:** *empty object*

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the webhook lookup. |
| `client_id` | `string \| null` | No | The application client ID. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links/). |

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### lookups.delete

`webhooks.lookups.delete`

Delete webhook lookup

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.webhooks.lookups.delete({ webhook_lookup_id: '0EH40505U7160970P' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `webhook_lookup_id` | `string` | Yes | The ID of the webhook lookup to delete. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | PayPal accepted the call; it answered with no body (204). |

***

### lookups.get

`webhooks.lookups.get`

Show webhook lookup details

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.webhooks.lookups.get({ webhook_lookup_id: '0EH40505U7160970P' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `webhook_lookup_id` | `string` | Yes | The ID of the webhook lookup to delete. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the webhook lookup. |
| `client_id` | `string \| null` | No | The application client ID. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links/). |

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### lookups.list

`webhooks.lookups.list`

List webhook lookups

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.webhooks.lookups.list({});
```

**Input:** *empty object*

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `webhooks_lookups` | `object[] \| null` | No | An array of webhook lookups. |

> [accordion] webhooks\_lookups full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   client_id?: string | null,
>   links?: {
>     href?: string | null,
>     rel?: string | null,
>     method?: string | null
>   }[] | null
> }[] | null
> ```

***

### simulateEvent

`webhooks.simulateEvent`

Send a sample event of a type to a webhook (sandbox and live)

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.webhooks.simulateEvent({ event_type: 'PAYMENT.CAPTURE.COMPLETED' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `webhook_id` | `string` | No | The ID of the webhook. If omitted, the URL is required. |
| `url` | `string` | No | The URL for the webhook endpoint. If omitted, the webhook ID is required. |
| `event_type` | `string` | Yes | The event name. Specify one of the subscribed events. For each request, provide only one event. |
| `resource_version` | `string` | No | The identifier for event type ex: 1.0/2.0 etc. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the webhook event notification. |
| `create_time` | `string \| null` | No | The date and time when the webhook event notification was created, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). |
| `resource_type` | `string \| null` | No | The name of the resource related to the webhook notification event. |
| `event_version` | `string \| null` | No | The event version in the webhook notification. |
| `event_type` | `string \| null` | No | The event that triggered the webhook event notification. |
| `summary` | `string \| null` | No | A summary description for the event notification. |
| `resource_version` | `string \| null` | No | The resource version in the webhook notification. |
| `resource` | `object \| null` | No | The resource that triggered the webhook event notification. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links). |

> [accordion] resource full type
>
> ```ts theme={null}
> {
> } | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### update

`webhooks.update`

Update webhook

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.webhooks.update({
	webhook_id: '0EH40505U7160970P',
	patch: [{ op: 'add' }],
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `webhook_id` | `string` | Yes | The ID of the webhook for which to list subscriptions. |
| `patch` | `object[]` | Yes | An array of JSON patch objects to apply partial updates to resources. |

> [accordion] patch full type
>
> ```ts theme={null}
> {
>   op: add | remove | replace | move | copy | test,
>   path?: string,
>   value?: number | number | string | boolean | any[] | {
>   } | null,
>   from?: string
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the webhook. |
| `url` | `string \| null` | No | The URL that is configured to listen on `localhost` for incoming `POST` notification messages that contain event information. |
| `event_types` | `object[] \| null` | No | An array of events to which to subscribe your webhook. To subscribe to all events, including events as they are added, specify the asterisk wild card. To replace the `event_types` array, specify the asterisk wild card. To list all supported events, list available events. |
| `links` | `object[] \| null` | No | An array of request-related [HATEOAS links](https://docs.corsair.dev/docs/api/reference/api-responses/#hateoas-links/). |

> [accordion] event\_types full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   description?: string | null,
>   status?: string | null,
>   resource_versions?: string[] | null
> }[] | null
> ```

> [accordion] links full type
>
> ```ts theme={null}
> {
>   href?: string | null,
>   rel?: string | null,
>   method?: string | null
> }[] | null
> ```

***

### verifySignature

`webhooks.verifySignature`

Verify a webhook delivery's signature with PayPal (the plugin's webhooks verify offline with PayPal's certificate)

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.webhooks.verifySignature({
	auth_algo: 'example',
	cert_url: 'https://example.com/hooks/corsair',
	transmission_id: 'example',
	transmission_sig: 'example',
	transmission_time: '2026-04-09T10:00:00Z',
	webhook_id: '0EH40505U7160970P',
	webhook_event: {},
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `auth_algo` | `string` | Yes | The algorithm that PayPal uses to generate the signature and that you can use to verify the signature. Extract this value from the `PAYPAL-AUTH-ALGO` response header, which is received with the webhook notification. |
| `cert_url` | `string` | Yes | The X.509 public key certificate. Download the certificate from this URL and use it to verify the signature. Extract this value from the `PAYPAL-CERT-URL` response header, which is received with the webhook notification. |
| `transmission_id` | `string` | Yes | The ID of the HTTP transmission. Contained in the `PAYPAL-TRANSMISSION-ID` header of the notification message. |
| `transmission_sig` | `string` | Yes | The PayPal-generated asymmetric signature. Appears in the `PAYPAL-TRANSMISSION-SIG` header of the notification message. |
| `transmission_time` | `string` | Yes | The date and time of the HTTP transmission, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). Appears in the `PAYPAL-TRANSMISSION-TIME` header of the notification message. |
| `webhook_id` | `string` | Yes | The ID of the webhook as configured in your Developer Portal account. |
| `webhook_event` | `object` | Yes | A webhook event notification. |

> [accordion] webhook\_event full type
>
> ```ts theme={null}
> {
>   event_version?: string,
>   resource_version?: string,
>   resource?: {
>   },
>   links?: {
>     href: string,
>     rel: string,
>     method?: GET | POST | PUT | DELETE | HEAD | CONNECT | OPTIONS | PATCH
>   }[]
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `verification_status` | `string \| null` | No | The status of the signature verification. |

***

## Web Profiles

### create

`webProfiles.create`

Create web experience profile

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.webProfiles.create({ paypal_request_id: '7b92603e-77ed-4896-8e78-5dea2050476a', name: 'Example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `paypal_request_id` | `string` | Yes | The server stores keys for three hours. |
| `name` | `string` | Yes | The web experience profile name. Must be unique for a set of profiles for a merchant. |
| `temporary` | `boolean` | No | Indicates whether the profile persists for three hours or permanently. To persist the profile permanently, set to `false`. To persist the profile for three hours, set to `true`. |
| `flow_config` | `object` | No | The flow configuration parameters. |
| `input_fields` | `object` | No | The input field customization parameters. |
| `presentation` | `object` | No | The style and presentation parameters. |

> [accordion] flow\_config full type
>
> ```ts theme={null}
> {
>   landing_page_type?: login | billing,
>   bank_txn_pending_url?: string,
>   user_action?: COMMIT,
>   return_uri_http_method?: GET | POST
> }
> ```

> [accordion] input\_fields full type
>
> ```ts theme={null}
> {
>   no_shipping?: number,
>   address_override?: number
> }
> ```

> [accordion] presentation full type
>
> ```ts theme={null}
> {
>   brand_name?: string,
>   logo_image?: string,
>   locale_code?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the web experience profile. |
| `name` | `string \| null` | No | The web experience profile name. Must be unique for a set of profiles for a merchant. |
| `temporary` | `boolean \| null` | No | Indicates whether the profile persists for three hours or permanently. To persist the profile permanently, set to `false`. To persist the profile for three hours, set to `true`. |
| `flow_config` | `object \| null` | No | The flow configuration parameters. |
| `input_fields` | `object \| null` | No | The input field customization parameters. |
| `presentation` | `object \| null` | No | The style and presentation parameters. |

> [accordion] flow\_config full type
>
> ```ts theme={null}
> {
>   landing_page_type?: string | null,
>   bank_txn_pending_url?: string | null,
>   user_action?: string | null,
>   return_uri_http_method?: string | null
> } | null
> ```

> [accordion] input\_fields full type
>
> ```ts theme={null}
> {
>   no_shipping?: number | null,
>   address_override?: number | null
> } | null
> ```

> [accordion] presentation full type
>
> ```ts theme={null}
> {
>   brand_name?: string | null,
>   logo_image?: string | null,
>   locale_code?: string | null
> } | null
> ```

***

### delete

`webProfiles.delete`

Delete web experience profile

**Risk:** `destructive`

```ts theme={null}
await corsair.paypal.api.webProfiles.delete({ id: '5O190127TN364715T' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the profile to delete. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | PayPal accepted the call; it answered with no body (204). |

***

### get

`webProfiles.get`

Show web experience profile details by ID

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.webProfiles.get({ id: '5O190127TN364715T' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the profile to delete. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string \| null` | No | The ID of the web experience profile. |
| `name` | `string \| null` | No | The web experience profile name. Must be unique for a set of profiles for a merchant. |
| `temporary` | `boolean \| null` | No | Indicates whether the profile persists for three hours or permanently. To persist the profile permanently, set to `false`. To persist the profile for three hours, set to `true`. |
| `flow_config` | `object \| null` | No | The flow configuration parameters. |
| `input_fields` | `object \| null` | No | The input field customization parameters. |
| `presentation` | `object \| null` | No | The style and presentation parameters. |

> [accordion] flow\_config full type
>
> ```ts theme={null}
> {
>   landing_page_type?: string | null,
>   bank_txn_pending_url?: string | null,
>   user_action?: string | null,
>   return_uri_http_method?: string | null
> } | null
> ```

> [accordion] input\_fields full type
>
> ```ts theme={null}
> {
>   no_shipping?: number | null,
>   address_override?: number | null
> } | null
> ```

> [accordion] presentation full type
>
> ```ts theme={null}
> {
>   brand_name?: string | null,
>   logo_image?: string | null,
>   locale_code?: string | null
> } | null
> ```

***

### list

`webProfiles.list`

List web experience profiles

**Risk:** `read`

```ts theme={null}
await corsair.paypal.api.webProfiles.list({});
```

**Input:** *empty object*

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   id?: string | null,
>   name?: string | null,
>   temporary?: boolean | null,
>   flow_config?: {
>     landing_page_type?: string | null,
>     bank_txn_pending_url?: string | null,
>     user_action?: string | null,
>     return_uri_http_method?: string | null
>   } | null,
>   input_fields?: {
>     no_shipping?: number | null,
>     address_override?: number | null
>   } | null,
>   presentation?: {
>     brand_name?: string | null,
>     logo_image?: string | null,
>     locale_code?: string | null
>   } | null
> }[]
> ```

***

### replace

`webProfiles.replace`

Update web experience profile

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.webProfiles.replace({ id: '5O190127TN364715T', name: 'Example' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the profile to delete. |
| `name` | `string` | Yes | The web experience profile name. Must be unique for a set of profiles for a merchant. |
| `temporary` | `boolean` | No | Indicates whether the profile persists for three hours or permanently. To persist the profile permanently, set to `false`. To persist the profile for three hours, set to `true`. |
| `flow_config` | `object` | No | The flow configuration parameters. |
| `input_fields` | `object` | No | The input field customization parameters. |
| `presentation` | `object` | No | The style and presentation parameters. |

> [accordion] flow\_config full type
>
> ```ts theme={null}
> {
>   landing_page_type?: login | billing,
>   bank_txn_pending_url?: string,
>   user_action?: COMMIT,
>   return_uri_http_method?: GET | POST
> }
> ```

> [accordion] input\_fields full type
>
> ```ts theme={null}
> {
>   no_shipping?: number,
>   address_override?: number
> }
> ```

> [accordion] presentation full type
>
> ```ts theme={null}
> {
>   brand_name?: string,
>   logo_image?: string,
>   locale_code?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | PayPal accepted the call; it answered with no body (204). |

***

### update

`webProfiles.update`

Partially update web experience profile

**Risk:** `write`

```ts theme={null}
await corsair.paypal.api.webProfiles.update({
	id: '5O190127TN364715T',
	patch: [{ op: 'add' }],
});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `id` | `string` | Yes | The ID of the profile to delete. |
| `patch` | `object[]` | Yes | An array of JSON patch objects to apply partial updates to resources. |

> [accordion] patch full type
>
> ```ts theme={null}
> {
>   op: add | remove | replace | move | copy | test,
>   path?: string,
>   value?: number | number | string | boolean | any[] | {
>   } | null,
>   from?: string
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | PayPal accepted the call; it answered with no body (204). |

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.