Skip to main content
POST
/
apple-pay
/
v1
/
{account_id}
/
payments
/
{payment_id}
/
transactions
applepayPost_Apple_Pay_Transaction
curl --request POST \
  --url https://payments.psp-test.dintero.com/apple-pay/v1/{account_id}/payments/{payment_id}/transactions \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '
{
  "reference": "<string>",
  "payment_data": "<string>"
}
'
import requests

url = "https://payments.psp-test.dintero.com/apple-pay/v1/{account_id}/payments/{payment_id}/transactions"

payload = {
"reference": "<string>",
"payment_data": "<string>"
}
headers = {
"authorization": "<authorization>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({reference: '<string>', payment_data: '<string>'})
};

fetch('https://payments.psp-test.dintero.com/apple-pay/v1/{account_id}/payments/{payment_id}/transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://payments.psp-test.dintero.com/apple-pay/v1/{account_id}/payments/{payment_id}/transactions"

payload := strings.NewReader("{\n \"reference\": \"<string>\",\n \"payment_data\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://payments.psp-test.dintero.com/apple-pay/v1/{account_id}/payments/{payment_id}/transactions")
.header("authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"reference\": \"<string>\",\n \"payment_data\": \"<string>\"\n}")
.asString();
{
  "payment_id": "<string>",
  "transaction_id": "<string>",
  "type": "APPLE_PAY_AUTHENTICATION"
}
{
"error": "<string>"
}
{
"error": "<string>"
}
{
"error": "<string>"
}
{
"error": "<string>"
}

Headers

authorization
string
required

Access token you received when creating the payment

Path Parameters

account_id
string
required

The Dintero merchant account id

Pattern: ^[PT]\d{8}
Example:

"P12345678"

payment_id
string
required

Body

application/json
reference
string
required

Unique reference for this transaction

Required string length: 8 - 40
payment_data
string
required

Should be JSON stringified object of the event from the onpaymentauthorized callback from apple pay. See https://developer.apple.com/documentation/applepayontheweb/applepaysession/onpaymentauthorized

Maximum string length: 10000

Response

Created transaction

Created transaction

payment_id
string
required
transaction_id
string
required
type
enum<string>
required
Available options:
APPLE_PAY_AUTHENTICATION
Last modified on May 12, 2026