Prepare the mutation input
When creating a fulfillmentCenter
there are several fields that are required for it to be created successfully. These are listed below:
name
: The name your company uses for thefulfillmentCenter
.party
: The ID for a party you have created. The best way to create apartyId
is to calculate a landed cost and use thepartyId
that is used for the origin you specify.
Manage fulfillment centers via the API
You can create and delete fulfillmentCenters
using the following mutations.
Mutation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mutation {
fulfillmentCenterCreate(
input: { name: "WKC", party: "party_55cdcd5e-01ac-4e35-afc0-7a17086cfdcf" }
) {
id
party {
location {
administrativeArea
countryCode
id
locality
line1
postalCode
}
}
name
}
}
Response
Create fulfillment center
Create fulfillment centersGraphQL
If you fulfill orders from multiple locations or fulfill orders from a location other than your primary business address, creating fulfillment centers is important. These fulfillment centers can be passed in
shipmentCartons
when using theshipmentCreateWorkflow
in order to specify the origin of ashipment
. If you are fulfilling orders in Dashboard, these fulfillment centers will appear as options in the label creation page.