riverty logo

Docs

Create Order

The creation of a order is the first step in the accounting process of Accounting as a Service.

More information can be found in our Link

Path

POST /businesses/{businessCode}/customers/{customerNumber}/orders

Request Parameters

businessCode
required
string
The business in the context of which this request is to be executed, e.g. 1000
customerNumber
required
string
The customer in the context of which this request is to be executed, e.g. TFI2021072801
X-Request-ID
string
The unique ID of this particular request/transaction. Subsequent requests with the same request ID might get ignored.

Request Body

application/json

object
carrier
string
Max length: 32
maxLength(32)
Name of the Carrier. Required for chargeback handling
object
contract
N/A
currency
required
string
Format([A-Z]{3})
Currency used in order (encoded as 3-letter code according to ISO 4217)
array
orderChannel
required
string
Enum:

ECOM

MOTO

MOBILE

POS

APP

P2P

Sales channel used: * ECOM = eCom (default) * MOTO = MoTo (MailOrder TelephoneOrder) * MOBILE = Mobile * POS = POS * APP = Application * P2P = P2P
orderDate
required
string
yyyy-MM-dd
Format(yyyy-MM-dd)
Date the order has been placed
orderReference
required
string
Max length: 16
maxLength(16)
Specific order reference from merchant (alphanumeric characters, only)
orderType
required
string
Enum:

PHYSICAL_GOODS

DIGITAL_GOODS

BANK_VERIFICATION

Defines the type of order resp. delivery being made: * PHYSICAL_GOODS = physical goods * DIGITAL_GOODS = digital goods * BANK_VERIFICATION = bank verification
object
processAfterDunning
string
Enum:

HAND_OVER_FOR_DEBT_COLLECTION

HAND_OVER_FOR_FACTORING

Decision if overdue orders should be sold or handed over for debt collection: * HAND_OVER_FOR_DEBT_COLLECTION = hand over for debt collection * HAND_OVER_FOR_FACTORING = hand over for factoring
object
Additional information that may be used later for reporting purposes
object
supplyingCountry
required
string
Format([A-Z]{2})
Country of origin of the shipment (encoded as ISO 3166-1 alpha-2)
trackingCode
string
Max length: 32
maxLength(31)
Tracking code of parcel. Required for chargeback handling
vatDeclarationCountry
required
string
Format([A-Z]{2})
Country in which the tax has to be declared (encoded as 2-letter code according to ISO 3166-1 alpha-2)

Responses

Successful Request for Visa payment

Request Example

    
        {
 "items": [
  {
   "vatType": "NORMAL",
   "quantity": 1,
   "productId": "BEF12346512A/1",
   "vatAmount": 19,
   "vatPercent": 19,
   "description": "Blumentopf XL (GRAU)",
   "positionType": "SALES_ARTICLE",
   "grossUnitPrice": 119,
   "orderItemReference": 1
  }
 ],
 "currency": "EUR",
 "orderDate": "2015-12-10T00:00:00.0000000",
 "orderType": "PHYSICAL_GOODS",
 "orderChannel": "ECOM",
 "billToAddress": {
  "email": "max.mustermann@outlook.com",
  "phone": "+491345789555",
  "title": "DR",
  "careOf": "Jane c/o John",
  "street": "Beispielstr.",
  "language": "de",
  "lastName": "Mustermann",
  "birthDate": "1983-09-15",
  "firstName": "Max",
  "postalCode": "48213",
  "salutation": "MRS",
  "countryCode": "DE",
  "nationality": "DE",
  "postalPlace": "Muenster",
  "streetNumber": "13A",
  "customerGroup": "Gold Clients",
  "taxIdentificationNumber": "DE999999999"
 },
 "shipToAddress": {
  "state": "AL",
  "title": "DR",
  "careOf": "Jane c/o John",
  "street": "Beispielstr.",
  "language": "de",
  "lastName": "Mustermann",
  "firstName": "Max",
  "postalCode": "48213",
  "salutation": "MRS",
  "countryCode": "DE",
  "postalPlace": "Muenster",
  "streetNumber": "13A"
 },
 "orderReference": "ODE12345678901",
 "paymentReference": {
  "paymentDetails": {
   "cardType": "VI",
   "cardHolder": "Max Mustermann",
   "expirationDate": {
    "year": 2018,
    "month": 12
   },
   "authorizedAmount": 119,
   "transactionToken": "8acda4a36b26b30a016b64b7bcd0225c",
   "authorizationDate": "2018-11-05T16:15:03.0000000+00:00",
   "merchantAccountId": "ECOM_WP",
   "settlementReference": "ODE12340849323"
  },
  "paymentMethodName": "VISA"
 },
 "supplyingCountry": "DE",
 "processAfterDunning": "HAND_OVER_FOR_DEBT_COLLECTION",
 "vatDeclarationCountry": "DE"
}
    

Response Example

    
        {
 "internalRequestId": "23c9579b-baaf-468f-a529-f876226e183c"
}