Pickup Info
Private Pickup Info API endpoints
List a customer's local pickup contacts. Without shipping_method_id, and for a pickup-point shipping method, only entries with no linked pickup point are returned. For a custom local pickup method, only entries whose pickup point is in that method's country are returned. The response is not paginated.
Query parameters
customer_idRequiredintegerID of a customer of your shop whose pickup info is listed.
shipping_method_idoptionalinteger | nullA published local pickup shipping method of your shop, used to narrow the list.
Returnsobject
Pickup info list response
Error responses
422objectcustomer_id is not a customer of your shop, or shipping_method_id is not a published local pickup method of your shop.
Add a local pickup contact to a customer of your shop. Sending pickup_point_id together with pickup_point_type links an external pickup point, which is looked up at the provider and must sit in a country covered by one of the shop's published local pickup methods. Omit both to store a plain pickup contact.
Request body
customer_idRequiredintegerID of the customer the pickup info belongs to.
first_nameRequiredstringlast_nameRequiredstringphoneoptionalstring | nullRequired unless the shop has optional phone numbers enabled. Must be a valid international phone number.
pickup_point_idoptionalstringExternal pickup point reference, prefixed with the ISO country code. Required as soon as pickup_point_type is sent. The country must be covered by one of the shop's published local pickup methods and the point must exist at the provider.
pickup_point_typeoptionalstringRequired as soon as pickup_point_id is sent.
Possible values: mondial_relay.
ReturnsPickupInfo
Pickup info object response
Error responses
422objectValidation failed, for example a customer_id that is not a customer of your shop, a missing name, an invalid phone number, a pickup_point_id that does not match the CC-123456 format or is unknown at the provider, or only one of pickup_point_id/pickup_point_type being sent.
Update the contact details of a local pickup entry. Only the name and phone number can be changed; the linked pickup point is fixed at creation time. Unlike an address, this payload is not merged - a phone left out is cleared when the shop makes phone numbers optional. The entry must belong to a customer of your shop.
Path parameters
pickup_info_idRequiredintegerPickup info ID
Format: integer.
Request body
first_nameRequiredstringlast_nameRequiredstringphoneoptionalstring | nullRequired unless the shop has optional phone numbers enabled. Must be a valid international phone number.
ReturnsPickupInfo
Pickup info object response
Error responses
404objectThe pickup info does not exist or does not belong to a customer of your shop.
422objectValidation failed, for example a missing first_name/last_name or an invalid phone number.
Delete a local pickup entry. An entry that is still linked to a subscription, or to an order awaiting delivery or a future shipment, cannot be deleted.
Path parameters
pickup_info_idRequiredintegerPickup info ID
Format: integer.
ReturnsPickupInfo
The deleted pickup info
Error responses
404objectThe pickup info does not exist or does not belong to a customer of your shop.
422objectThe pickup info is in use: it is the shipping address of a subscription, or of an order awaiting delivery or a future shipment.