POST
/
{walletId}
/
order
/
{orderId}
/
status
curl --request POST \
  --url https://gateway.varchev.com/wallet/{walletId}/order/{orderId}/status \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'tenantId: <tenantid>' \
  --data '{
  "walletId": "walletId",
  "amount": {
    "balanceType": "current",
    "name": "name",
    "instanceRef": {
      "refferTo": ""
    },
    "value": "value"
  },
  "context": [
    {
      "action": "deny",
      "priority": 0.8008281904610115,
      "conditions": [
        {
          "priority": 1.4658129805029452,
          "operation": "lessThan",
          "requirementType": "kyc",
          "order": 5.962133916683182
        },
        {
          "priority": 1.4658129805029452,
          "operation": "lessThan",
          "requirementType": "kyc",
          "order": 5.962133916683182
        }
      ],
      "enforcementPoint": [
        "UI",
        "UI"
      ],
      "order": 6.027456183070403
    },
    {
      "action": "deny",
      "priority": 0.8008281904610115,
      "conditions": [
        {
          "priority": 1.4658129805029452,
          "operation": "lessThan",
          "requirementType": "kyc",
          "order": 5.962133916683182
        },
        {
          "priority": 1.4658129805029452,
          "operation": "lessThan",
          "requirementType": "kyc",
          "order": 5.962133916683182
        }
      ],
      "enforcementPoint": [
        "UI",
        "UI"
      ],
      "order": 6.027456183070403
    }
  ],
  "operationType": {
    "operationDestination": {
      "operationDestinationAddress": {
        "data": [
          {
            "name": "name",
            "type": "number",
            "value": "value"
          },
          {
            "name": "name",
            "type": "number",
            "value": "value"
          }
        ],
        "type": "wallet_owner_platform"
      },
      "type": "asset",
      "direction": "source"
    },
    "isSameWallet": true,
    "fees": [
      {
        "paidBy": "source",
        "feeSharing": {
          "destination": [
            null,
            null
          ]
        },
        "appliedTo": "base",
        "feeApi": "feeApi",
        "feeValue": {
          "balanceType": "current",
          "name": "name",
          "instanceRef": {
            "refferTo": ""
          },
          "value": "value"
        },
        "type": "fixed",
        "group": 5.637376656633329,
        "order": 2.3021358869347655
      },
      {
        "paidBy": "source",
        "feeSharing": {
          "destination": [
            null,
            null
          ]
        },
        "appliedTo": "base",
        "feeApi": "feeApi",
        "feeValue": {
          "balanceType": "current",
          "name": "name",
          "instanceRef": {
            "refferTo": ""
          },
          "value": "value"
        },
        "type": "fixed",
        "group": 5.637376656633329,
        "order": 2.3021358869347655
      }
    ],
    "name": "name",
    "operationType": "buy",
    "id": {
      "auditData": {
        "createdAt": "2000-01-23T04:56:07.000Z",
        "archivedAt": "2000-01-23T04:56:07.000Z",
        "deletedAt": "2000-01-23T04:56:07.000Z",
        "updatedBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
        "createdBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
        "deletedBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
        "updatedAt": "2000-01-23T04:56:07.000Z"
      },
      "tenantId": "tenantId",
      "entityId": "",
      "ownerId": "ownerId"
    },
    "limits": [
      {
        "action": "deny",
        "priority": 0.8008281904610115,
        "conditions": [
          {
            "priority": 1.4658129805029452,
            "operation": "lessThan",
            "requirementType": "kyc",
            "order": 5.962133916683182
          },
          {
            "priority": 1.4658129805029452,
            "operation": "lessThan",
            "requirementType": "kyc",
            "order": 5.962133916683182
          }
        ],
        "enforcementPoint": [
          "UI",
          "UI"
        ],
        "order": 6.027456183070403
      },
      {
        "action": "deny",
        "priority": 0.8008281904610115,
        "conditions": [
          {
            "priority": 1.4658129805029452,
            "operation": "lessThan",
            "requirementType": "kyc",
            "order": 5.962133916683182
          },
          {
            "priority": 1.4658129805029452,
            "operation": "lessThan",
            "requirementType": "kyc",
            "order": 5.962133916683182
          }
        ],
        "enforcementPoint": [
          "UI",
          "UI"
        ],
        "order": 6.027456183070403
      }
    ],
    "assetType": "currency"
  },
  "id": "id",
  "source": {
    "instance": "",
    "allowedOperations": "",
    "purpose": "purpose",
    "instanceBase": "",
    "id": {
      "auditData": {
        "createdAt": "2000-01-23T04:56:07.000Z",
        "archivedAt": "2000-01-23T04:56:07.000Z",
        "deletedAt": "2000-01-23T04:56:07.000Z",
        "updatedBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
        "createdBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
        "deletedBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
        "updatedAt": "2000-01-23T04:56:07.000Z"
      },
      "tenantId": "tenantId",
      "entityId": "",
      "ownerId": "ownerId"
    },
    "type": "currency",
    "status": "new",
    "availableBalance": {
      "balanceType": "current",
      "name": "name",
      "instanceRef": {
        "refferTo": ""
      },
      "value": "value"
    }
  },
  "type": "purchase_order",
  "complete": false,
  "transactions": [
    {
      "walletId": "walletId",
      "fees": [
        {
          "paidBy": "source",
          "feeSharing": {
            "destination": [
              null,
              null
            ]
          },
          "appliedTo": "base",
          "feeApi": "feeApi",
          "feeValue": {
            "balanceType": "current",
            "name": "name",
            "instanceRef": {
              "refferTo": ""
            },
            "value": "value"
          },
          "type": "fixed",
          "group": 5.637376656633329,
          "order": 2.3021358869347655
        },
        {
          "paidBy": "source",
          "feeSharing": {
            "destination": [
              null,
              null
            ]
          },
          "appliedTo": "base",
          "feeApi": "feeApi",
          "feeValue": {
            "balanceType": "current",
            "name": "name",
            "instanceRef": {
              "refferTo": ""
            },
            "value": "value"
          },
          "type": "fixed",
          "group": 5.637376656633329,
          "order": 2.3021358869347655
        }
      ],
      "transactionDateReversed": "2000-01-23T04:56:07.000Z",
      "orderId": "orderId",
      "transactionDateConfimed": "2000-01-23T04:56:07.000Z",
      "transactionDateCancelled": "2000-01-23T04:56:07.000Z",
      "transactionDateStarted": "2000-01-23T04:56:07.000Z",
      "id": "id",
      "events": [
        {
          "walletId": "walletId",
          "orderId": "orderId",
          "event_date": "2000-01-23T04:56:07.000Z",
          "id": "id",
          "originator": "originator",
          "status": "status"
        },
        {
          "walletId": "walletId",
          "orderId": "orderId",
          "event_date": "2000-01-23T04:56:07.000Z",
          "id": "id",
          "originator": "originator",
          "status": "status"
        }
      ],
      "status": "status"
    },
    {
      "walletId": "walletId",
      "fees": [
        {
          "paidBy": "source",
          "feeSharing": {
            "destination": [
              null,
              null
            ]
          },
          "appliedTo": "base",
          "feeApi": "feeApi",
          "feeValue": {
            "balanceType": "current",
            "name": "name",
            "instanceRef": {
              "refferTo": ""
            },
            "value": "value"
          },
          "type": "fixed",
          "group": 5.637376656633329,
          "order": 2.3021358869347655
        },
        {
          "paidBy": "source",
          "feeSharing": {
            "destination": [
              null,
              null
            ]
          },
          "appliedTo": "base",
          "feeApi": "feeApi",
          "feeValue": {
            "balanceType": "current",
            "name": "name",
            "instanceRef": {
              "refferTo": ""
            },
            "value": "value"
          },
          "type": "fixed",
          "group": 5.637376656633329,
          "order": 2.3021358869347655
        }
      ],
      "transactionDateReversed": "2000-01-23T04:56:07.000Z",
      "orderId": "orderId",
      "transactionDateConfimed": "2000-01-23T04:56:07.000Z",
      "transactionDateCancelled": "2000-01-23T04:56:07.000Z",
      "transactionDateStarted": "2000-01-23T04:56:07.000Z",
      "id": "id",
      "events": [
        {
          "walletId": "walletId",
          "orderId": "orderId",
          "event_date": "2000-01-23T04:56:07.000Z",
          "id": "id",
          "originator": "originator",
          "status": "status"
        },
        {
          "walletId": "walletId",
          "orderId": "orderId",
          "event_date": "2000-01-23T04:56:07.000Z",
          "id": "id",
          "originator": "originator",
          "status": "status"
        }
      ],
      "status": "status"
    }
  ],
  "destinationAssets": [
    {
      "data": {
        "name": "name",
        "type": "number",
        "value": "value"
      },
      "type": {
        "operationDestinationAddress": {
          "data": [
            {
              "name": "name",
              "type": "number",
              "value": "value"
            },
            {
              "name": "name",
              "type": "number",
              "value": "value"
            }
          ],
          "type": "wallet_owner_platform"
        },
        "type": "asset",
        "direction": "source"
      }
    },
    {
      "data": {
        "name": "name",
        "type": "number",
        "value": "value"
      },
      "type": {
        "operationDestinationAddress": {
          "data": [
            {
              "name": "name",
              "type": "number",
              "value": "value"
            },
            {
              "name": "name",
              "type": "number",
              "value": "value"
            }
          ],
          "type": "wallet_owner_platform"
        },
        "type": "asset",
        "direction": "source"
      }
    }
  ],
  "status": "created"
}'
{
  "walletId": "walletId",
  "tenantId": "tenantId",
  "order": {
    "walletId": "walletId",
    "amount": {
      "balanceType": "current",
      "name": "name",
      "instanceRef": {
        "refferTo": ""
      },
      "value": "value"
    },
    "context": [
      {
        "action": "deny",
        "priority": 0.8008281904610115,
        "conditions": [
          {
            "priority": 1.4658129805029452,
            "operation": "lessThan",
            "requirementType": "kyc",
            "order": 5.962133916683182
          },
          {
            "priority": 1.4658129805029452,
            "operation": "lessThan",
            "requirementType": "kyc",
            "order": 5.962133916683182
          }
        ],
        "enforcementPoint": [
          "UI",
          "UI"
        ],
        "order": 6.027456183070403
      },
      {
        "action": "deny",
        "priority": 0.8008281904610115,
        "conditions": [
          {
            "priority": 1.4658129805029452,
            "operation": "lessThan",
            "requirementType": "kyc",
            "order": 5.962133916683182
          },
          {
            "priority": 1.4658129805029452,
            "operation": "lessThan",
            "requirementType": "kyc",
            "order": 5.962133916683182
          }
        ],
        "enforcementPoint": [
          "UI",
          "UI"
        ],
        "order": 6.027456183070403
      }
    ],
    "operationType": {
      "operationDestination": {
        "operationDestinationAddress": {
          "data": [
            {
              "name": "name",
              "type": "number",
              "value": "value"
            },
            {
              "name": "name",
              "type": "number",
              "value": "value"
            }
          ],
          "type": "wallet_owner_platform"
        },
        "type": "asset",
        "direction": "source"
      },
      "isSameWallet": true,
      "fees": [
        {
          "paidBy": "source",
          "feeSharing": {
            "destination": [
              null,
              null
            ]
          },
          "appliedTo": "base",
          "feeApi": "feeApi",
          "feeValue": {
            "balanceType": "current",
            "name": "name",
            "instanceRef": {
              "refferTo": ""
            },
            "value": "value"
          },
          "type": "fixed",
          "group": 5.637376656633329,
          "order": 2.3021358869347655
        },
        {
          "paidBy": "source",
          "feeSharing": {
            "destination": [
              null,
              null
            ]
          },
          "appliedTo": "base",
          "feeApi": "feeApi",
          "feeValue": {
            "balanceType": "current",
            "name": "name",
            "instanceRef": {
              "refferTo": ""
            },
            "value": "value"
          },
          "type": "fixed",
          "group": 5.637376656633329,
          "order": 2.3021358869347655
        }
      ],
      "name": "name",
      "operationType": "buy",
      "id": {
        "auditData": {
          "createdAt": "2000-01-23T04:56:07.000Z",
          "archivedAt": "2000-01-23T04:56:07.000Z",
          "deletedAt": "2000-01-23T04:56:07.000Z",
          "updatedBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
          "createdBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
          "deletedBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
          "updatedAt": "2000-01-23T04:56:07.000Z"
        },
        "tenantId": "tenantId",
        "entityId": "",
        "ownerId": "ownerId"
      },
      "limits": [
        {
          "action": "deny",
          "priority": 0.8008281904610115,
          "conditions": [
            {
              "priority": 1.4658129805029452,
              "operation": "lessThan",
              "requirementType": "kyc",
              "order": 5.962133916683182
            },
            {
              "priority": 1.4658129805029452,
              "operation": "lessThan",
              "requirementType": "kyc",
              "order": 5.962133916683182
            }
          ],
          "enforcementPoint": [
            "UI",
            "UI"
          ],
          "order": 6.027456183070403
        },
        {
          "action": "deny",
          "priority": 0.8008281904610115,
          "conditions": [
            {
              "priority": 1.4658129805029452,
              "operation": "lessThan",
              "requirementType": "kyc",
              "order": 5.962133916683182
            },
            {
              "priority": 1.4658129805029452,
              "operation": "lessThan",
              "requirementType": "kyc",
              "order": 5.962133916683182
            }
          ],
          "enforcementPoint": [
            "UI",
            "UI"
          ],
          "order": 6.027456183070403
        }
      ],
      "assetType": "currency"
    },
    "id": "id",
    "source": {
      "instance": "",
      "allowedOperations": "",
      "purpose": "purpose",
      "instanceBase": "",
      "id": {
        "auditData": {
          "createdAt": "2000-01-23T04:56:07.000Z",
          "archivedAt": "2000-01-23T04:56:07.000Z",
          "deletedAt": "2000-01-23T04:56:07.000Z",
          "updatedBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
          "createdBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
          "deletedBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
          "updatedAt": "2000-01-23T04:56:07.000Z"
        },
        "tenantId": "tenantId",
        "entityId": "",
        "ownerId": "ownerId"
      },
      "type": "currency",
      "status": "new",
      "availableBalance": {
        "balanceType": "current",
        "name": "name",
        "instanceRef": {
          "refferTo": ""
        },
        "value": "value"
      }
    },
    "type": "purchase_order",
    "complete": false,
    "transactions": [
      {
        "walletId": "walletId",
        "fees": [
          {
            "paidBy": "source",
            "feeSharing": {
              "destination": [
                null,
                null
              ]
            },
            "appliedTo": "base",
            "feeApi": "feeApi",
            "feeValue": {
              "balanceType": "current",
              "name": "name",
              "instanceRef": {
                "refferTo": ""
              },
              "value": "value"
            },
            "type": "fixed",
            "group": 5.637376656633329,
            "order": 2.3021358869347655
          },
          {
            "paidBy": "source",
            "feeSharing": {
              "destination": [
                null,
                null
              ]
            },
            "appliedTo": "base",
            "feeApi": "feeApi",
            "feeValue": {
              "balanceType": "current",
              "name": "name",
              "instanceRef": {
                "refferTo": ""
              },
              "value": "value"
            },
            "type": "fixed",
            "group": 5.637376656633329,
            "order": 2.3021358869347655
          }
        ],
        "transactionDateReversed": "2000-01-23T04:56:07.000Z",
        "orderId": "orderId",
        "transactionDateConfimed": "2000-01-23T04:56:07.000Z",
        "transactionDateCancelled": "2000-01-23T04:56:07.000Z",
        "transactionDateStarted": "2000-01-23T04:56:07.000Z",
        "id": "id",
        "events": [
          {
            "walletId": "walletId",
            "orderId": "orderId",
            "event_date": "2000-01-23T04:56:07.000Z",
            "id": "id",
            "originator": "originator",
            "status": "status"
          },
          {
            "walletId": "walletId",
            "orderId": "orderId",
            "event_date": "2000-01-23T04:56:07.000Z",
            "id": "id",
            "originator": "originator",
            "status": "status"
          }
        ],
        "status": "status"
      },
      {
        "walletId": "walletId",
        "fees": [
          {
            "paidBy": "source",
            "feeSharing": {
              "destination": [
                null,
                null
              ]
            },
            "appliedTo": "base",
            "feeApi": "feeApi",
            "feeValue": {
              "balanceType": "current",
              "name": "name",
              "instanceRef": {
                "refferTo": ""
              },
              "value": "value"
            },
            "type": "fixed",
            "group": 5.637376656633329,
            "order": 2.3021358869347655
          },
          {
            "paidBy": "source",
            "feeSharing": {
              "destination": [
                null,
                null
              ]
            },
            "appliedTo": "base",
            "feeApi": "feeApi",
            "feeValue": {
              "balanceType": "current",
              "name": "name",
              "instanceRef": {
                "refferTo": ""
              },
              "value": "value"
            },
            "type": "fixed",
            "group": 5.637376656633329,
            "order": 2.3021358869347655
          }
        ],
        "transactionDateReversed": "2000-01-23T04:56:07.000Z",
        "orderId": "orderId",
        "transactionDateConfimed": "2000-01-23T04:56:07.000Z",
        "transactionDateCancelled": "2000-01-23T04:56:07.000Z",
        "transactionDateStarted": "2000-01-23T04:56:07.000Z",
        "id": "id",
        "events": [
          {
            "walletId": "walletId",
            "orderId": "orderId",
            "event_date": "2000-01-23T04:56:07.000Z",
            "id": "id",
            "originator": "originator",
            "status": "status"
          },
          {
            "walletId": "walletId",
            "orderId": "orderId",
            "event_date": "2000-01-23T04:56:07.000Z",
            "id": "id",
            "originator": "originator",
            "status": "status"
          }
        ],
        "status": "status"
      }
    ],
    "destinationAssets": [
      {
        "data": {
          "name": "name",
          "type": "number",
          "value": "value"
        },
        "type": {
          "operationDestinationAddress": {
            "data": [
              {
                "name": "name",
                "type": "number",
                "value": "value"
              },
              {
                "name": "name",
                "type": "number",
                "value": "value"
              }
            ],
            "type": "wallet_owner_platform"
          },
          "type": "asset",
          "direction": "source"
        }
      },
      {
        "data": {
          "name": "name",
          "type": "number",
          "value": "value"
        },
        "type": {
          "operationDestinationAddress": {
            "data": [
              {
                "name": "name",
                "type": "number",
                "value": "value"
              },
              {
                "name": "name",
                "type": "number",
                "value": "value"
              }
            ],
            "type": "wallet_owner_platform"
          },
          "type": "asset",
          "direction": "source"
        }
      }
    ],
    "status": "created"
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

tenantId
string
required

Path Parameters

walletId
string
required
orderId
string
required

Body

application/json

Sample Payload

The body is of type object.

Response

200
application/json

successful operation

The response is of type object.