Skip to main content
POST
/
api
/
v1
/
shop
/
sync
Create or update a trip (cart)
curl --request POST \
  --url https://mcp-bff.gojinko.com/api/v1/shop/sync \
  --header 'Content-Type: application/json' \
  --data '
{
  "trip_id": "<string>"
}
'
{
  "actions_performed": [
    "<string>"
  ],
  "contact": {
    "email": "<string>",
    "phone": "<string>"
  },
  "items": [
    {
      "currency": "<string>",
      "description": "<string>",
      "item_id": "<string>",
      "price": 123,
      "type": "<string>"
    }
  ],
  "status": "<string>",
  "totals": {
    "currency": "<string>",
    "total": 123
  },
  "travelers": [
    {
      "date_of_birth": "<string>",
      "first_name": "<string>",
      "gender": "<string>",
      "last_name": "<string>",
      "passenger_type": "<string>"
    }
  ],
  "trip_id": "<string>"
}

Body

application/json

Trip request

add_item
object
remove_item
object
trip_id
string

existing cart ID; omit to create new

upsert_travelers
object

Response

Trip updated

actions_performed
string[]

e.g. ["created", "item_added", "travelers_updated"]

contact
object
items
object[]
status
string

e.g. "draft"

totals
object
travelers
object[]
trip_id
string