---
updatedAt: 2026-05-06T08:14:02.000Z
---

# Payment Session

Used to create a new PayTo Payment session and redirect the buyer to the Wpay PayTo experience.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Wpay NPP PayTo Merchant API",
    "description": "API endpoints to manage agreements and initiate and view PayTo payments.",
    "contact": {
      "name": "Wpay",
      "url": "https://wpay.com.au/"
    },
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://uat-api.wpay.com.au/wpay-npp-payto/merchant-gateway/",
      "description": "UAT"
    },
    {
      "url": "https://pt-api.wpay.com.au/wpay-npp-payto/merchant-gateway/",
      "description": "PT - Production Test"
    },
    {
      "url": "https://api.wpay.com.au/wpay-npp-payto/merchant-gateway/",
      "description": "Production"
    }
  ],
  "paths": {
    "/merchants/{merchantId}/session/payment": {
      "post": {
        "tags": [
          "Payments"
        ],
        "summary": "Payment Session",
        "description": "Used to create a new PayTo Payment session and redirect the buyer to the Wpay PayTo experience.",
        "parameters": [
          {
            "name": "x-request-id",
            "in": "header",
            "description": "Unique identifier for the request (GUID).<br/> This id will be used for tracking and troubleshooting problems associated with the request.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "merchantId",
            "in": "path",
            "description": "ID of the merchant. This unique value will be provided by Wpay as part of on-boarding.<br/>Note: Wpay uses the UUID v4 format for all the unique IDs we provide.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Merchant.API.RequestDtos.CreateSession.Payment.CreatePaymentSessionRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Merchant.API.RequestDtos.CreateSession.Payment.CreatePaymentSessionRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Merchant.API.RequestDtos.CreateSession.Payment.CreatePaymentSessionRequestDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Merchant.API.Application.Queries.ViewModels.MerchantSessionViewModel"
                },
                "example": {
                  "sessionId": "99e166fa-3664-4ae0-8665-78dd332c14e6",
                  "merchantId": "aa899c1d-a581-47fb-ad76-8a55111e1db5",
                  "sessionType": "Checkout",
                  "merchantReturnUrl": "https://merchant.com/checkout",
                  "wpayRedirectionUrl": "https://wpaydevaaepaytostorage.z8.web.core.windows.net/uat/index.html?sessionId=4a5aaa5e-6fc5-4f8c-a2bb-e39a8021c937&signature=amVwWXdtWjhveFI3RWRBaTVnVXJLQkwwanNmUzFqTHlYTnNFYm1kQ0ZUMD0=",
                  "buyer": {
                    "buyerId": "51349",
                    "buyerName": "Jane Jones"
                  },
                  "instrument": {
                    "instrumentId": "521e6489-ab61-45ba-8b05-c8c2a9adc2cb",
                    "instrumentType": "Adhoc",
                    "status": "Created",
                    "merchantWebhooksUrl": "https://merchant.com/checkout",
                    "merchantDefinedData": {
                      "Currency": "AUD"
                    }
                  },
                  "payment": {
                    "paymentId": "27532536-7acd-498d-9c99-b4772300b444",
                    "instrumentId": "521e6489-ab61-45ba-8b05-c8c2a9adc2cb",
                    "amount": 100,
                    "status": "NotStarted",
                    "reference": "12059546438f56",
                    "description": "Thank you Jane Jones for shopping at the AP+ store",
                    "creditorReference": "55059290438f4d9",
                    "merchantWebhooksUrl": "https://merchant.com/webhooks",
                    "merchantDefinedData": {
                      "OrderNo": "123"
                    }
                  },
                  "sessionCreatedTimestamp": "2024-11-19T03:01:59.9205006Z",
                  "sessionUpdatedTimestamp": "2024-11-19T03:01:59.9205007Z",
                  "sessionExpiryTimestamp": "2024-11-19T04:01:59.9205007Z",
                  "sessionStatus": "Created"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Merchant.API.Swagger.Examples.BadRequestExamples.ProblemDetails400ResponseModel"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "One or more validation errors occurred.",
                  "status": 400,
                  "traceId": "00-d2eb5dc766296047344081d3de1e17e7-63809d2f07f7ea22-00",
                  "errors": {
                    "merchantId": [
                      "Merchant Id is required"
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "500": {
            "description": "Internal Server Error"
          }
        },
        "callbacks": {
          "Payment.Completed": {
            "<MerchantWebhooksUrl>": {
              "post": {
                "description": "The payment was completed successfully.",
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "$ref": "#/components/schemas/Merchant.API.Application.Webhooks.PaymentCompleted.PaymentCompletedWebhook"
                      },
                      "example": "{\"EventId\":\"d0e226c4-238b-41f7-bf0a-cfffb02d7dc0\",\"EventType\":\"Payment.Completed\",\"Payload\":{\"PaymentId\":\"27532536-7acd-498d-9c99-b4772300b444\",\"InstrumentId\":\"521e6489-ab61-45ba-8b05-c8c2a9adc2cb\",\"Amount\":100,\"Reference\":\"12059546438f56\",\"Description\":\"Thank you Jane Jones for shopping at the AP\\u002B store\",\"CreditorReference\":\"55059290438f4d9\",\"NppPublishedAt\":\"2024-11-19T03:01:59.9214559Z\",\"MerchantDefinedData\":{\"Uid\":\"dd270c40-db9b-4843-b2b5-a7be5b1a4db5\"},\"SchemaVersion\":\"1.0.0\"},\"PublishedAt\":\"2024-11-19T03:01:59.9214649Z\",\"SchemaVersion\":\"1.0.0\"}"
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "Your server implementation should return this HTTP status code if the data was received successfully"
                  }
                }
              }
            }
          },
          "Payment.Rejected": {
            "<MerchantWebhooksUrl>": {
              "post": {
                "description": "The payment was rejected.",
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "$ref": "#/components/schemas/Merchant.API.Application.Webhooks.PaymentRejected.PaymentRejectedWebhook"
                      },
                      "example": "{\"EventId\":\"d0e226c4-238b-41f7-bf0a-cfffb02d7dc0\",\"EventType\":\"Payment.Rejected\",\"Payload\":{\"PaymentId\":\"27532536-7acd-498d-9c99-b4772300b444\",\"InstrumentId\":\"521e6489-ab61-45ba-8b05-c8c2a9adc2cb\",\"Amount\":100,\"RejectionReason\":{\"Code\":\"AM04\",\"Title\":\"Insufficient Funds\",\"Detail\":\"The specified Payer Customer Account has insufficient funds\"},\"NppPublishedAt\":\"2024-11-19T03:01:59.9225293Z\",\"MerchantDefinedData\":{\"Uid\":\"dd270c40-db9b-4843-b2b5-a7be5b1a4db5\"},\"SchemaVersion\":\"1.0.0\"},\"PublishedAt\":\"2024-11-19T03:01:59.9225318Z\",\"SchemaVersion\":\"1.0.0\"}"
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "Your server implementation should return this HTTP status code if the data was received successfully"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Merchant.API.Application.Queries.ViewModels.MerchantSessionViewModel": {
        "required": [
          "buyer",
          "merchantId",
          "merchantReturnUrl",
          "sessionCreatedTimestamp",
          "sessionExpiryTimestamp",
          "sessionId",
          "sessionStatus",
          "sessionType",
          "sessionUpdatedTimestamp",
          "wpayRedirectionUrl"
        ],
        "type": "object",
        "properties": {
          "sessionId": {
            "minLength": 1,
            "type": "string",
            "description": "ID of the session that was created.<br/>Note: Wpay uses the UUID v4 format for all the unique IDs we generate."
          },
          "merchantId": {
            "minLength": 1,
            "type": "string",
            "description": "ID of the merchant."
          },
          "sessionType": {
            "$ref": "#/components/schemas/Merchant.Domain.Enums.SessionType"
          },
          "merchantReturnUrl": {
            "minLength": 1,
            "type": "string",
            "description": "The Merchant's supplied return URL where Wpay will re-direct the consumer once they are done."
          },
          "wpayRedirectionUrl": {
            "minLength": 1,
            "type": "string",
            "description": "The Wpay URL where merchant is required to re-direct the consumer immediately upon receipt of this 201 created session response.<br/>Note: the re-direct launches the corresponding Wpay PayTo customer experience."
          },
          "buyer": {
            "$ref": "#/components/schemas/Merchant.API.Application.Queries.ViewModels.SessionDetails.BuyerViewModel"
          },
          "instrument": {
            "$ref": "#/components/schemas/Merchant.API.Application.Queries.ViewModels.SessionDetails.InstrumentViewModel"
          },
          "payment": {
            "$ref": "#/components/schemas/Merchant.API.Application.Queries.ViewModels.SessionDetails.PaymentViewModel"
          },
          "sessionCreatedTimestamp": {
            "type": "string",
            "description": "The date and time stamp when this session was created.",
            "format": "date-time"
          },
          "sessionUpdatedTimestamp": {
            "type": "string",
            "description": "The date and time stamp when this session was last updated.",
            "format": "date-time"
          },
          "sessionExpiryTimestamp": {
            "type": "string",
            "description": "The date and time stamp when this session expires.<br/>Note: typical Wpay session timer is 60 minutes.",
            "format": "date-time"
          },
          "sessionStatus": {
            "$ref": "#/components/schemas/Merchant.Domain.Enums.SessionStatus"
          }
        },
        "additionalProperties": false
      },
      "Merchant.API.Application.Queries.ViewModels.SessionDetails.BuyerViewModel": {
        "required": [
          "buyerName"
        ],
        "type": "object",
        "properties": {
          "buyerId": {
            "type": "string",
            "description": "ID of the buyer for whom this session was created.",
            "nullable": true
          },
          "buyerName": {
            "minLength": 1,
            "type": "string",
            "description": "The buyer or shopper full name as it is known to the merchant."
          }
        },
        "additionalProperties": false,
        "description": "This object contains the buyer details."
      },
      "Merchant.API.Application.Queries.ViewModels.SessionDetails.InstrumentViewModel": {
        "required": [
          "instrumentId",
          "instrumentType",
          "status"
        ],
        "type": "object",
        "properties": {
          "instrumentId": {
            "minLength": 1,
            "type": "string",
            "description": "The Merchant's unique PayTo instrument identifier."
          },
          "instrumentType": {
            "$ref": "#/components/schemas/Merchant.Domain.Enums.InstrumentType"
          },
          "status": {
            "$ref": "#/components/schemas/Merchant.Domain.Enums.InstrumentStatus"
          },
          "merchantWebhooksUrl": {
            "type": "string",
            "description": "The Merchant's supplied URL that should receive webhooks for the PayTo instrument created in this session.",
            "nullable": true
          },
          "merchantDefinedData": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "An optional object for passing any additional key-value pairs that might be useful to the merchant.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "This object contains the PayTo instrument details."
      },
      "Merchant.API.Application.Queries.ViewModels.SessionDetails.PaymentViewModel": {
        "required": [
          "amount",
          "instrumentId",
          "paymentId",
          "status"
        ],
        "type": "object",
        "properties": {
          "paymentId": {
            "minLength": 1,
            "type": "string",
            "description": "The Merchant's unique payment identifier."
          },
          "instrumentId": {
            "minLength": 1,
            "type": "string",
            "description": "ID of the PayTo instrument under which this payment was requested to be initiated."
          },
          "amount": {
            "type": "integer",
            "description": "Payment amount in cents. Value must be greater than zero.",
            "format": "int32"
          },
          "status": {
            "$ref": "#/components/schemas/Merchant.Domain.Enums.PaymentStatus"
          },
          "reference": {
            "type": "string",
            "description": "The order or purchase or reference number that is provided to consumer during checkout.<br/>Note: this value will be visible to consumers in their banking statements.",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Additional free form payment description that can be included for the consumer in the payment.<br/>Note: this value will be visible to consumers in their banking statements.",
            "nullable": true
          },
          "creditorReference": {
            "type": "string",
            "description": "A backoffice only reference that can be used to aid in creditor's reconciliation activities.<br/>Note: this value will only be visible in creditor's corporate banking statement.",
            "nullable": true
          },
          "merchantWebhooksUrl": {
            "type": "string",
            "description": "The Merchant's supplied URL that should receive webhooks for this payment.",
            "nullable": true
          },
          "merchantDefinedData": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "An optional object for passing any additional key-value pairs that might be useful to the merchant.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "This object contains the payment details."
      },
      "Merchant.API.Application.Webhooks.PaymentCompleted.PaymentCompletedWebhook": {
        "required": [
          "eventId",
          "eventType",
          "payload",
          "publishedAt",
          "schemaVersion"
        ],
        "type": "object",
        "properties": {
          "eventId": {
            "minLength": 1,
            "type": "string",
            "description": "The unique event identifier. This value does not change when we attempt to resend the same Webhook notification."
          },
          "eventType": {
            "minLength": 1,
            "type": "string",
            "description": "The type of the event."
          },
          "payload": {
            "$ref": "#/components/schemas/Merchant.API.Application.Webhooks.PaymentCompleted.PaymentCompletedWebhookPayload"
          },
          "publishedAt": {
            "type": "string",
            "description": "The time we sent the event to you. This value will change when we attempt to resend the same Webhook notification.",
            "format": "date-time"
          },
          "schemaVersion": {
            "minLength": 1,
            "type": "string",
            "description": "The schema version of the event."
          }
        },
        "additionalProperties": false
      },
      "Merchant.API.Application.Webhooks.PaymentCompleted.PaymentCompletedWebhookPayload": {
        "required": [
          "amount",
          "instrumentId",
          "nppPublishedAt",
          "paymentId",
          "schemaVersion"
        ],
        "type": "object",
        "properties": {
          "schemaVersion": {
            "minLength": 1,
            "type": "string",
            "description": "The schema version of this payload object."
          },
          "paymentId": {
            "minLength": 1,
            "type": "string",
            "description": "ID of the payment which was initiated."
          },
          "instrumentId": {
            "minLength": 1,
            "type": "string",
            "description": "ID of the PayTo instrument under which this payment was initiated."
          },
          "amount": {
            "type": "integer",
            "description": "Initiated payment amount in cents",
            "format": "int32"
          },
          "reference": {
            "type": "string",
            "description": "The order or purchase or reference number that was provided to consumer during checkout.<br/>Note: this value is visible to consumers in their banking statements.",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Additional free form payment description that was included for the consumer in the payment.<br/>Note: this value is visible to consumers in their banking statements.",
            "nullable": true
          },
          "creditorReference": {
            "type": "string",
            "description": "A backoffice only reference that was used to aid in creditor's reconciliation activities.<br/>Note: this value is only visible in creditor's corporate banking statement.",
            "nullable": true
          },
          "nppPublishedAt": {
            "type": "string",
            "description": "The time this event was executed in the NPP infrastructure.",
            "format": "date-time"
          },
          "merchantDefinedData": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "An optional object for passing any additional key-value pairs that might be useful to the merchant.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Merchant.API.Application.Webhooks.PaymentRejected.PaymentRejectedWebhook": {
        "required": [
          "eventId",
          "eventType",
          "payload",
          "publishedAt",
          "schemaVersion"
        ],
        "type": "object",
        "properties": {
          "eventId": {
            "minLength": 1,
            "type": "string",
            "description": "The unique event identifier. This value does not change when we attempt to resend the same Webhook notification."
          },
          "eventType": {
            "minLength": 1,
            "type": "string",
            "description": "The type of the event."
          },
          "payload": {
            "$ref": "#/components/schemas/Merchant.API.Application.Webhooks.PaymentRejected.PaymentRejectedWebhookPayload"
          },
          "publishedAt": {
            "type": "string",
            "description": "The time we sent the event to you. This value will change when we attempt to resend the same Webhook notification.",
            "format": "date-time"
          },
          "schemaVersion": {
            "minLength": 1,
            "type": "string",
            "description": "The schema version of the event."
          }
        },
        "additionalProperties": false
      },
      "Merchant.API.Application.Webhooks.PaymentRejected.PaymentRejectedWebhookPayload": {
        "required": [
          "amount",
          "instrumentId",
          "nppPublishedAt",
          "paymentId",
          "schemaVersion"
        ],
        "type": "object",
        "properties": {
          "schemaVersion": {
            "minLength": 1,
            "type": "string",
            "description": "The schema version of this payload object."
          },
          "paymentId": {
            "minLength": 1,
            "type": "string",
            "description": "ID of the payment which was initiated."
          },
          "instrumentId": {
            "minLength": 1,
            "type": "string",
            "description": "ID of the PayTo instrument under which this payment was initiated."
          },
          "amount": {
            "type": "integer",
            "description": "Initiated payment amount in cents",
            "format": "int32"
          },
          "rejectionReason": {
            "$ref": "#/components/schemas/Merchant.API.Application.Webhooks.PaymentRejected.PaymentRejectionReason"
          },
          "nppPublishedAt": {
            "type": "string",
            "description": "The time this event was executed in the NPP infrastructure.",
            "format": "date-time"
          },
          "merchantDefinedData": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "An optional object for passing any additional key-value pairs that might be useful to the merchant.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Merchant.API.Application.Webhooks.PaymentRejected.PaymentRejectionReason": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Payment rejection reason code. Note: this is an internal value and is not intended to be displayed to consumers.",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Payment rejection reason title. Note: this value can be displayed to consumers.",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "description": "Payment rejection reason details. Note: this value may be displayed to consumers.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Rejection reason details."
      },
      "Merchant.API.RequestDtos.CreateSession.BuyerDto": {
        "required": [
          "buyerName"
        ],
        "type": "object",
        "properties": {
          "buyerId": {
            "type": "string",
            "description": "Merchant's unique identifier of the buyer or shopper profile.<br />Note: If the buyer ID is new, Wpay will automatically create a new PayTo wallet for this buyer and use it to store all future PayTo payment instruments.",
            "nullable": true
          },
          "buyerName": {
            "maxLength": 140,
            "minLength": 1,
            "pattern": "^[ -~]+$",
            "type": "string",
            "description": "The buyer or shopper full name as it is known to the merchant.<br />Note: Wpay will be using the provided value across all related NPP PayTo network activity for this buyer."
          }
        },
        "additionalProperties": false,
        "description": "This object contains the buyer details."
      },
      "Merchant.API.RequestDtos.CreateSession.Payment.CreatePaymentSessionRequestDto": {
        "required": [
          "buyer",
          "merchantReturnUrl",
          "payment"
        ],
        "type": "object",
        "properties": {
          "merchantReturnUrl": {
            "minLength": 1,
            "type": "string",
            "description": "The Merchant's supplied return URL where Wpay will re-direct the consumer once they are done."
          },
          "buyer": {
            "$ref": "#/components/schemas/Merchant.API.RequestDtos.CreateSession.BuyerDto"
          },
          "payment": {
            "$ref": "#/components/schemas/Merchant.API.RequestDtos.CreateSession.Payment.PaymentDto"
          }
        },
        "additionalProperties": false
      },
      "Merchant.API.RequestDtos.CreateSession.Payment.PaymentDto": {
        "required": [
          "amount",
          "instrumentId",
          "paymentId"
        ],
        "type": "object",
        "properties": {
          "paymentId": {
            "minLength": 1,
            "type": "string",
            "description": "The Merchant's unique payment identifier."
          },
          "instrumentId": {
            "minLength": 1,
            "type": "string",
            "description": "ID of the PayTo instrument under which this payment was requested to be initiated."
          },
          "amount": {
            "maximum": 100000000,
            "minimum": 1,
            "type": "integer",
            "description": "Payment amount in cents. Value must be greater than zero.",
            "format": "int32"
          },
          "reference": {
            "maxLength": 35,
            "minLength": 1,
            "type": "string",
            "description": "The order or purchase or reference number that is provided to consumer during checkout.<br/>Note: this value will be visible to consumers in their banking statements.",
            "nullable": true
          },
          "description": {
            "maxLength": 280,
            "minLength": 1,
            "type": "string",
            "description": "Additional free form payment description that can be included for the consumer in the payment.<br/>Note: this value will be visible to consumers in their banking statements.",
            "nullable": true
          },
          "creditorReference": {
            "type": "string",
            "description": "A backoffice only reference that can be used to aid in creditor's reconciliation activities.<br/>Note: this value will only be visible in creditor's corporate banking statement.",
            "nullable": true
          },
          "merchantWebhooksUrl": {
            "type": "string",
            "description": "The Merchant's supplied URL that should receive webhooks for this payment.",
            "nullable": true
          },
          "merchantDefinedData": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "An optional object for passing any additional key-value pairs that might be useful to the merchant.",
            "nullable": true
          },
          "simulation": {
            "$ref": "#/components/schemas/Merchant.API.RequestDtos.CreateSession.PaymentSimulationDto"
          }
        },
        "additionalProperties": false,
        "description": "This object contains the payment details."
      },
      "Merchant.API.RequestDtos.CreateSession.PaymentSimulationDto": {
        "required": [
          "simulate"
        ],
        "type": "object",
        "properties": {
          "simulate": {
            "minLength": 1,
            "type": "string",
            "description": "The simulation being requested. Please refer to the developer guide for a list of all available simulations."
          },
          "delay": {
            "type": "integer",
            "description": "The delay in seconds before the requested simulation is executed.",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A sandbox only parameter than allows you to simulate the outcome of this payment. Please refer to the developer guide for more info."
      },
      "Merchant.API.Swagger.Examples.BadRequestExamples.ProblemDetails400ResponseModel": {
        "required": [
          "errors",
          "status",
          "title",
          "traceId",
          "type"
        ],
        "type": "object",
        "properties": {
          "type": {
            "minLength": 1,
            "type": "string",
            "description": "A URI reference [RFC3986] that identifies the problem type."
          },
          "title": {
            "minLength": 1,
            "type": "string",
            "description": "A short, human-readable summary of the problem type."
          },
          "status": {
            "type": "integer",
            "description": "The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem",
            "format": "int32"
          },
          "traceId": {
            "minLength": 1,
            "type": "string",
            "description": "ID for the request."
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "ID of the PayTo instrument."
          }
        },
        "additionalProperties": false
      },
      "Merchant.Domain.Enums.InstrumentStatus": {
        "enum": [
          "NotStarted",
          "Pending",
          "Created",
          "Declined"
        ],
        "type": "string",
        "description": "The PayTo Instrument status in the context of this session."
      },
      "Merchant.Domain.Enums.InstrumentType": {
        "enum": [
          "OneOff",
          "Adhoc"
        ],
        "type": "string",
        "description": "The type of the PayTo instrument."
      },
      "Merchant.Domain.Enums.PaymentStatus": {
        "enum": [
          "NotStarted",
          "Processing",
          "Completed",
          "Rejected"
        ],
        "type": "string",
        "description": "The PayTo payment status in the context of this session."
      },
      "Merchant.Domain.Enums.SessionStatus": {
        "enum": [
          "Created",
          "Started",
          "Cancelled",
          "Completed",
          "Expired"
        ],
        "type": "string",
        "description": "The current status of this session."
      },
      "Merchant.Domain.Enums.SessionType": {
        "enum": [
          "Checkout",
          "Instrument",
          "Payment"
        ],
        "type": "string",
        "description": "The type of session that was created."
      }
    }
  },
  "tags": [
    {
      "name": "Payments"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```