Hey,
I have a sales channel app and we are using checkout API to create checkout and process payment.
We have done our testing on the development store using Shopify payment as a test mode and we are getting the value of shopify_payment_account_id
attribute in the response.
But when we tried checkout API for live Shopify store with the same setting of Shopify payment(Live Mode). In the API response we are getting the value of shopify_payment_account_id
attribute in the response is null.
Can someone guide me here on what I am missing for the live store?
Request sample: curl --location --request POST ‘https://the-24x7-discount-store.myshopify.com//admin/api/2021-10/checkouts.json’ \ –header ‘Content-Type: application/json’ \ –header ‘x-shopify-access-token: my-access-token’ \ –header ‘Authorization: basic’ \ –data-raw ‘{ “checkout”: { “line_items”: [ { “:variant_id”: “39465746759905”, “quantity”: 2, “variant_id”: “39465746071777”, “quantity”: 1 } ] }, “email”: “test11@yopmail.com”, “shipping_address”: { “first_name”: “ssis”, “last_name”: “test”, “address1”: “11 avenue”, “city”: “los angelese”, “province”: “california”, “country”: “US”, “phone”: 9876543210, “zip”: 90017 } }’
Response: { “checkout”: { “completed_at”: null, “created_at”: “2021-10-08T12:14:46-04:00”, “currency”: “USD”, “presentment_currency”: “USD”, “customer_id”: null, “customer_locale”: “en”, “device_id”: null, “discount_code”: null, “email”: null, “legal_notice_url”: null, “location_id”: null, “name”: “#29169144758497”, “note”: “”, “note_attributes”: {}, “order_id”: null, “order_status_url”: null, “order”: null, “payment_due”: “75.00”, “payment_url”: “https://deposit.us.shopifycs.com/sessions”, “payments”: , “phone”: null, “shopify_payments_account_id”: null, “privacy_policy_url”: null, “refund_policy_url”: null, “requires_shipping”: true, “reservation_time_left”: 0, “reservation_time”: null, “source_identifier”: null, “source_name”: “4292907”, “source_url”: null, “subscription_policy_url”: null, “subtotal_price”: “75.00”, “shipping_policy_url”: null, “tax_exempt”: false, “taxes_included”: false, “terms_of_sale_url”: null, “terms_of_service_url”: null, “token”: “1c757f898c54b9b5aff33dad5f172d46”, “total_price”: “75.00”, “total_tax”: “0.00”, “total_tip_received”: “0.00”, “total_line_items_price”: “75.00”, “updated_at”: “2021-10-08T12:14:46-04:00”, “user_id”: null, “web_url”: “https://the-24x7-discount-store.myshopify.com/55046504673/checkouts/1c757f898c54b9b5aff33dad5f172d46”, “line_items”: [ { “id”: “c44f9f6000b14656a3c6a70903ebb2a8”, “key”: “c44f9f6000b14656a3c6a70903ebb2a8”, “product_id”: 6635674042593, “variant_id”: 39465746071777, “sku”: “”, “vendor”: “Corner Store for the Home”, “title”: “Soothing Skin Sleep Regimen”, “variant_title”: “”, “image_url”: “https://cdn.shopify.com/s/files/1/0550/4650/4673/products/cream-3496778_1920.jpg?v=1632999266”, “taxable”: true, “requires_shipping”: true, “gift_card”: false, “price”: “75.00”, “compare_at_price”: null, “line_price”: “75.00”, “properties”: {}, “quantity”: 1, “grams”: 907, “fulfillment_service”: “manual”, “applied_discounts”: , “discount_allocations”: , “tax_lines”: } ], “gift_cards”: , “tax_lines”: , “tax_manipulations”: , “shipping_line”: null, “shipping_rate”: null, “shipping_address”: null, “credit_card”: null, “billing_address”: null, “applied_discount”: null } }