Streamline Express is a simplified and combined version of the shopcart and purchase APIs. Streamline Express pages are preconfigured in ETM. The name of a page is passed in to the service along with customer information to create a purchase.
For simplicity, Streamline Express is traditionally used directly from a browser. However, this API provides a way of calling Streamline Express using a regular server-to-server REST API.
Creates a new purchase using a Streamline Express page and given customer information.
name | type | description |
---|---|---|
X-Instance-Id | header | Identifies the merchant instance, required for all API calls. |
X-Language | header | Specifies the requested language of a resource, for example sv . If not present, this will default to a pre-configured language, most commonly en . |
media type | data type | description |
---|---|---|
application/json | StreamlineExpressRequest | The request to create a purchase. |
media type | data type | description |
---|---|---|
application/json | StreamlineExpressResponse | The response generated by Streamline Express. |
POST /estore/express/purchases
Content-Type: application/json
Accept: application/json
X-Instance-Id: ...
X-Language: ...
{
"page" : "...",
"countryCode" : "SE",
"invoiceAddress" : "...",
"invoiceAddressDescription" : "...",
"invoiceZipcode" : "...",
"invoiceCity" : "...",
"deliveryMethodName" : "...",
"paymentMethodName" : "...",
"termsOfDeliveryCode" : "...",
"termsOfPaymentCode" : "...",
"sellerNumber" : "...",
"methodOfArrivalNumber" : "...",
"campaignCode" : "...",
"applicableIntegrities" : [ "...", "..." ],
"socialSecurityNumber" : "...",
"deniedIntegrities" : [ "...", "..." ],
"firstName" : "...",
"lastName" : "...",
"organizationNumber" : "...",
"invoiceAdministrativeDivision" : "...",
"companyName" : "...",
"email" : "...",
"customerNumber" : "...",
"alternativeEmailAddress" : "...",
"landline" : "...",
"cellphone" : "...",
"gender" : "MAN",
"additionalOrderText" : "...",
"sellerDepartment" : "...",
"sellerPerson" : "...",
"notes" : "...",
"nextDeliveryDate" : "...",
"orderDate" : "...",
"languageCode" : "es",
"dateOfBirth" : "...",
"interval" : 12345,
"customFields" : [ {
"code" : "...",
"value" : "..."
}, {
"code" : "...",
"value" : "..."
} ],
"remoteAddress" : "..."
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"purchaseNumber" : "...",
"countryCode" : "SE",
"currencyCode" : "SEK",
"totalValue" : 12345.0,
"shippingFee" : 12345.0,
"paymentFee" : 12345.0,
"charge" : 12345.0,
"discount" : 12345.0
}