Create a shipment operator

Create a new shipment operator

post

Create a new shipment operator

Authorizations
Body
shipmentstring · uuidRequired
codestring · enumRequiredPossible values:
addressstring | nullableRequired
addressComplementarystring | nullableRequired
postalCodestring | nullableRequired
citystring | nullableRequired
namestring | nullableRequired
contactstring | nullableRequired
emailstring · email | nullableRequired
telstring | nullableRequired
faxstring | nullableRequired
phonestring | nullableRequired
agreementNumberstring | nullableRequired
agreementValidityany | nullableRequired
societystring | nullableRequired
countrystring · enum | nullableRequiredPossible values:
Responses
201Success
application/json
post
POST /shipment-operator HTTP/1.1
Host: api.one-record.fr
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 395

{
  "shipment": "123e4567-e89b-12d3-a456-426614174000",
  "code": "CONSIGNEE",
  "address": "text",
  "addressComplementary": "text",
  "postalCode": "text",
  "city": "text",
  "name": "text",
  "contact": "text",
  "email": "name@gmail.com",
  "tel": "text",
  "fax": "text",
  "phone": "text",
  "agreementNumber": "text",
  "agreementValidity": null,
  "society": "text",
  "country": "AD",
  "comments": [
    {
      "comment": "text",
      "societies": [
        {
          "society": "text"
        }
      ]
    }
  ]
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "shipment": "123e4567-e89b-12d3-a456-426614174000",
  "society": "text",
  "country": "AD",
  "code": "CONSIGNEE",
  "address": "text",
  "addressComplementary": "text",
  "postalCode": "text",
  "city": "text",
  "name": "text",
  "contact": "text",
  "email": "name@gmail.com",
  "tel": "text",
  "fax": "text",
  "phone": "text",
  "agreementNumber": "text",
  "agreementValidity": null,
  "createdAt": null,
  "updatedAt": null
}

Last updated