E2ECreate Quotes
POST
/quotesShipping address override (USD)
Per-quote shipping_address override.
Request
Example
curl -X POST 'https://api.paycose.com/api/v1/app1/platform/wallet/quotes/' \
-H 'X-Session-Token: {{session_token}}' \
-H 'X-Country: {{country}}' \
-H 'X-Test-Mode: {{x_test_mode}}' \
-d '{
"line_items": [
{
"product_id": "{{e2e_product_logitech_mx3s}}",
"quantity": 1
}
],
"default_tax_rates": [],
"default_fees": [],
"coupon": "",
"customer_id": "{{e2e_customer_us_individual}}",
"default_payment_method": {
"id": "<string>",
"type": "<string>"
},
"collection_method": "<string>",
"capture_method": "<string>",
"auto_advance": false,
"due_date": "<RFC3339 timestamp>",
"currency": "USD",
"transfer_data": {
"destination": "{{e2e_customer_destination}}",
"balance_id": "{{e2e_balance_usd}}"
},
"metadata": {
"scenario": "shipping-address-override"
},
"account_tax_ids": [
"<string>"
],
"payment_method_types": [
"<string>"
],
"payment_method_providers": [
"<string>"
],
"shipping_address": {
"name": "Mary Johnson (Office)",
"phone": "+14155550199",
"line1": "1 Apple Park Way",
"line2": "MS 169-1AP",
"city": "Cupertino",
"state": "CA",
"postal_code": "95014",
"country": "US"
},
"shipping_rate_id": "{{e2e_ship_dhl_intl}}",
"enable_shipping": false,
"labels": [
"<string>"
]
}'Headers
| Name | Value | Description |
|---|---|---|
| X-Session-Token | {{session_token}} | |
| X-Country | {{country}} | |
| X-Test-Mode | {{x_test_mode}} | true=wallet_test, false=wallet_live (default). Toggle the x_test_mode collection variable to flip every applicable request. |
Body
| Name | Type | Value |
|---|---|---|
| line_items | array | [1] |
| default_tax_rates | array | [0] |
| default_fees | array | [0] |
| coupon | string | |
| customer_id | string | {{e2e_customer_us_individual}} |
| default_payment_method | object | {…} |
| collection_method | string | <string> |
| capture_method | string | <string> |
| auto_advance | boolean | false |
| due_date | string | <RFC3339 timestamp> |
| currency | string | USD |
| transfer_data | object | {…} |
| metadata | object | {…} |
| account_tax_ids | array | [1] |
| payment_method_types | array | [1] |
| payment_method_providers | array | [1] |
| shipping_address | object | {…} |
| shipping_rate_id | string | {{e2e_ship_dhl_intl}} |
| enable_shipping | boolean | false |
| labels | array | [1] |
{
"line_items": [
{
"product_id": "{{e2e_product_logitech_mx3s}}",
"quantity": 1
}
],
"default_tax_rates": [],
"default_fees": [],
"coupon": "",
"customer_id": "{{e2e_customer_us_individual}}",
"default_payment_method": {
"id": "<string>",
"type": "<string>"
},
"collection_method": "<string>",
"capture_method": "<string>",
"auto_advance": false,
"due_date": "<RFC3339 timestamp>",
"currency": "USD",
"transfer_data": {
"destination": "{{e2e_customer_destination}}",
"balance_id": "{{e2e_balance_usd}}"
},
"metadata": {
"scenario": "shipping-address-override"
},
"account_tax_ids": [
"<string>"
],
"payment_method_types": [
"<string>"
],
"payment_method_providers": [
"<string>"
],
"shipping_address": {
"name": "Mary Johnson (Office)",
"phone": "+14155550199",
"line1": "1 Apple Park Way",
"line2": "MS 169-1AP",
"city": "Cupertino",
"state": "CA",
"postal_code": "95014",
"country": "US"
},
"shipping_rate_id": "{{e2e_ship_dhl_intl}}",
"enable_shipping": false,
"labels": [
"<string>"
]
}Responses
200200 OK
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
Body
{
"id": "<string>",
"object": "<string>",
"resource": "<string>",
"created_at": "<RFC3339 timestamp>",
"errors": [
{
"code": "<string>",
"message": "<string>"
}
],
"next_action": [
{
"type": "<string>",
"title": "<string>",
"description": "<string>",
"i18n_key": "<string>",
"url": "<string>",
"client_secret": "<string>",
"payment_method": "<string>",
"qr_data": "<string>"
}
]
}400400 Bad Request
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
Body
{
"object": "error",
"code": "<string>",
"key": "<string>",
"i18n_key": "<string>",
"message": "<string>",
"request_id": "<string>"
}500500 Internal Server Error
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
Body
{
"object": "error",
"code": "<string>",
"key": "<string>",
"i18n_key": "<string>",
"message": "<string>",
"request_id": "<string>"
}