---
updatedAt: 2026-10-22T13:01:41.000Z
agentTools:
  projectIndex: https://developer.avinodegroup.com/llms.txt
---

# Publish a payment request

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Paynode API",
    "version": "2026-11-12T06:11:40.521311568Z"
  },
  "externalDocs": {
    "description": "Avinode Group Devportal",
    "url": "https://developer.avinodegroup.com"
  },
  "servers": [
    {
      "url": "https://sandbox.avinode.com/payapi",
      "description": "Paynode (development)"
    },
    {
      "url": "https://sandbox.avinode.com/api",
      "description": "Avinode (development)"
    }
  ],
  "security": [
    {
      "Bearer": []
    }
  ],
  "tags": [
    {
      "name": "PaymentRequest",
      "description": "APIs supporting payment requests."
    }
  ],
  "paths": {
    "/paymentrequest/{id}/publish": {
      "put": {
        "tags": [
          "PaymentRequest"
        ],
        "summary": "Publish a payment request",
        "operationId": "publish_1",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"
            }
          },
          {
            "name": "X-Avinode-SentTimestamp",
            "in": "header",
            "description": "ISO8601 Timestamp",
            "schema": {}
          },
          {
            "name": "X-Avinode-ApiToken",
            "in": "header",
            "description": "API Token",
            "required": false,
            "schema": {}
          },
          {
            "name": "X-Avinode-Product",
            "in": "header",
            "description": "Calling product / software (ex: AcmeApp-v10.2)",
            "schema": {}
          },
          {
            "name": "X-Avinode-ActAsAccount",
            "in": "header",
            "description": "Account id if action on behalf of",
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentRequestJSON"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "servers": [
        {
          "url": "https://sandbox.avinode.com/payapi",
          "description": "Paynode (development)"
        }
      ]
    }
  },
  "components": {
    "schemas": {
      "ActionLinkJSON": {
        "type": "object",
        "description": "A link describing an action that can be performed on the parent object.",
        "properties": {
          "type": {
            "type": "string",
            "description": "The type of action"
          },
          "description": {
            "type": "string",
            "description": "A description of what this action is intended to do"
          },
          "httpMethod": {
            "type": "string",
            "description": "The HTTP method expected by the resource at the target URI"
          },
          "href": {
            "type": "string",
            "description": "The URI for invoking the action"
          }
        }
      },
      "AirportJSON": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "province": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "timeZone": {
            "type": "string"
          },
          "icao": {
            "type": "string"
          },
          "iata": {
            "type": "string"
          },
          "faa": {
            "type": "string"
          }
        }
      },
      "Amount": {
        "type": "object",
        "properties": {
          "value": {
            "$ref": "#/components/schemas/MonetaryValue"
          },
          "currency": {
            "type": "string"
          }
        }
      },
      "AmountJSON": {
        "type": "object",
        "properties": {
          "value": {
            "type": "number"
          },
          "currency": {
            "type": "string"
          }
        }
      },
      "CardDetailsJSON": {
        "type": "object",
        "properties": {
          "summary": {
            "type": "string",
            "description": "Summary of card (last digits)"
          },
          "name": {
            "type": "string",
            "description": "Name of card holder. Note, displaying this could be sensitive"
          },
          "type": {
            "$ref": "#/components/schemas/TypeJSON",
            "description": "Type of card (VISA, Mastercard, American Express"
          }
        }
      },
      "DocumentRefJSON": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "mediaType": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "issuer": {
            "type": "string"
          },
          "needsAccept": {
            "type": "boolean"
          }
        }
      },
      "DocumentsAcceptedJSON": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "EnumOutputJSON": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A unique identifier for this."
          },
          "code": {
            "type": "string",
            "description": "Any standard code for this thing."
          },
          "display": {
            "type": "string",
            "description": "A string for displaying this value."
          }
        },
        "required": [
          "display"
        ]
      },
      "ExternalIdentityJSON": {
        "type": "object",
        "properties": {
          "systemId": {
            "type": "string"
          },
          "identifier": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "uri": {
            "type": "string"
          },
          "active": {
            "type": "boolean"
          }
        }
      },
      "HoldStatusJSON": {
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/EnumOutputJSON"
          },
          "amounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Amount"
            }
          }
        }
      },
      "LegJSON": {
        "type": "object",
        "properties": {
          "departure": {
            "type": "string"
          },
          "departureAirport": {
            "$ref": "#/components/schemas/AirportJSON"
          },
          "arrivalAirport": {
            "$ref": "#/components/schemas/AirportJSON"
          },
          "pax": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "LineItemJSON": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          },
          "total": {
            "type": "number"
          },
          "type": {
            "type": "string",
            "enum": [
              "NONE",
              "AUTOMATIC_PRICE_ADJUSTMENT",
              "UNKNOWN"
            ]
          }
        }
      },
      "MerchantStatusJSON": {
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/EnumOutputJSON"
          },
          "holding": {
            "$ref": "#/components/schemas/HoldStatusJSON"
          },
          "received": {
            "$ref": "#/components/schemas/ReceivedStatusJSON"
          },
          "refunds": {
            "$ref": "#/components/schemas/RefundStatusJSON"
          },
          "payable": {
            "type": "boolean"
          }
        }
      },
      "MonetaryAmountJson": {
        "type": "object",
        "properties": {
          "value": {
            "$ref": "#/components/schemas/MonetaryValue"
          },
          "currency": {
            "type": "string"
          }
        }
      },
      "MonetaryValue": {
        "type": "object",
        "properties": {
          "zero": {
            "type": "boolean"
          },
          "greaterThanZero": {
            "type": "boolean"
          },
          "lessThanZero": {
            "type": "boolean"
          }
        }
      },
      "PaymentJSON": {
        "type": "object",
        "properties": {
          "externalId": {
            "type": "string",
            "description": "ID"
          },
          "amount": {
            "$ref": "#/components/schemas/AmountJSON",
            "description": "Amount"
          },
          "type": {
            "type": "string",
            "description": "Type of payment",
            "enum": [
              "CARD",
              "WIRE",
              "INSTANT_PAYMENT",
              "LOGGED_PAYMENT",
              "LOG_PAYMENT_CHECK",
              "LOG_PAYMENT_JETCARD",
              "LOG_PAYMENT_WIRE",
              "LOG_PAYMENT_OTHER",
              "DEMO",
              "UNKNOWN"
            ]
          },
          "subtype": {
            "type": "string"
          },
          "method": {
            "$ref": "#/components/schemas/EnumOutputJSON",
            "description": "Payment Method, CARD/WIRE/INSTANT_PAYMENT"
          },
          "authorizedDate": {
            "type": "string",
            "format": "date-time",
            "description": "Authorization date"
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time"
          },
          "capturedDate": {
            "type": "string",
            "format": "date-time"
          },
          "cancelDate": {
            "type": "string",
            "format": "date-time"
          },
          "documentsAccepted": {
            "$ref": "#/components/schemas/DocumentsAcceptedJSON"
          },
          "cardDetails": {
            "$ref": "#/components/schemas/CardDetailsJSON",
            "description": "Card details"
          }
        },
        "required": [
          "amount",
          "externalId",
          "method",
          "type"
        ]
      },
      "PaymentOption": {
        "type": "object",
        "properties": {
          "method": {
            "$ref": "#/components/schemas/EnumOutputJSON",
            "deprecated": true,
            "description": "The agreed upon payment method",
            "example": "CARD/WIRE/INSTANT_PAYMENT"
          },
          "hold": {
            "$ref": "#/components/schemas/EnumOutputJSON",
            "description": "Card hold option",
            "example": "REQUEST"
          },
          "capture": {
            "$ref": "#/components/schemas/EnumOutputJSON",
            "description": "Card capture",
            "example": "REQUEST"
          },
          "cardOnFile": {
            "$ref": "#/components/schemas/EnumOutputJSON",
            "description": "Card capture",
            "example": "REQUEST"
          },
          "total": {
            "$ref": "#/components/schemas/MonetaryAmountJson",
            "description": "Total value requested for this option"
          },
          "adjustment": {
            "$ref": "#/components/schemas/MonetaryAmountJson",
            "description": "Automatic adjustment for this option"
          }
        },
        "required": [
          "method",
          "total"
        ]
      },
      "PaymentRequestJSON": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A unique identifier for this resource"
          },
          "href": {
            "type": "string",
            "description": "A URI at which this resource may be read"
          },
          "type": {
            "type": "string",
            "description": "The type of resource"
          },
          "links": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ResourceLinkJSON"
              }
            },
            "description": "Associated links related to this resource"
          },
          "actions": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/ActionLinkJSON"
            },
            "description": "Associated actions related to this resource"
          },
          "externalIdentities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExternalIdentityJSON"
            }
          },
          "version": {
            "type": "integer",
            "format": "int64",
            "description": "Version",
            "readOnly": true
          },
          "tripId": {
            "type": "string"
          },
          "customer": {
            "type": "string"
          },
          "platformTripId": {
            "$ref": "#/components/schemas/TripId",
            "description": "Related platform TripID provided by creator",
            "readOnly": true
          },
          "createdDate": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "total": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "payments": {
            "type": "array",
            "description": "All executed payments (failed and successful)",
            "items": {
              "$ref": "#/components/schemas/PaymentJSON"
            },
            "readOnly": true
          },
          "merchantStatus": {
            "$ref": "#/components/schemas/MerchantStatusJSON",
            "description": "Status from a merchant point of view",
            "readOnly": true
          },
          "paymentOptions": {
            "type": "array",
            "description": "The available payment options",
            "items": {
              "$ref": "#/components/schemas/PaymentOption"
            }
          },
          "documentsAcceptedDate": {
            "type": "string",
            "description": "",
            "readOnly": true
          },
          "merchantName": {
            "type": "string"
          },
          "legalBusinessName": {
            "type": "string"
          },
          "merchantLogoUrl": {
            "type": "string"
          },
          "legs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LegJSON"
            }
          },
          "lineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LineItemJSON"
            }
          },
          "documentRefs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentRefJSON"
            }
          },
          "emailAddresses": {
            "type": "string"
          }
        },
        "required": [
          "paymentOptions"
        ]
      },
      "ReceivedStatusJSON": {
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/EnumOutputJSON"
          },
          "amounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Amount"
            }
          }
        }
      },
      "RefundStatusJSON": {
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/EnumOutputJSON"
          },
          "amounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Amount"
            }
          }
        }
      },
      "ResourceLinkJSON": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A unique identifier for this resource"
          },
          "href": {
            "type": "string",
            "description": "A URI at which this resource may be read"
          },
          "type": {
            "type": "string",
            "description": "The type of resource"
          },
          "links": {
            "description": "Associated links related to this resource"
          },
          "actions": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/ActionLinkJSON"
            },
            "description": "Associated actions related to this resource"
          },
          "displayName": {
            "type": "string",
            "description": "If this link is intended to be visually display, a display name to show."
          }
        }
      },
      "TripId": {},
      "TypeJSON": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "display": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header"
      }
    }
  }
}
```