Skip to main content
POST
/
api
/
v1
/
payments
/
submit-form
Submit form responses
curl --request POST \
  --url https://api-beta.pepay.io/api/v1/payments/submit-form \
  --header 'Content-Type: application/json' \
  --header 'x-session-token: <api-key>' \
  --header 'x-signature: <api-key>' \
  --data '
{
  "responses": [
    {
      "question_id": "q1",
      "response": "[email protected]"
    },
    {
      "question_id": "q2",
      "response": "Acme Inc"
    }
  ]
}
'
{
  "success": true
}

Authorizations

x-session-token
string
header
required

Payment session token (opaque). Returned when creating an invoice; send on every request.

x-signature
string
header
required

Payment session signature in the format signature_hash.timestamp_ms (returned with the invoice/session).

Body

application/json
responses
object[]
required

List of responses keyed by question id.

Required array length: 1 - 5 elements

Response

Responses submitted successfully

success
boolean