PAID
. Otherwise, the invoice is marked as PARTIALLY PAID
.username:password
Authorization: Basic *****************
{
"method": "CASH",
"payment_date": "2022-02-07",
"amount": {
"currency_code": "USD",
"value": "10.00"
},
"type": "EXTERNAL",
"transaction_type": "CAPTURE",
"note": "<A note associated with an external cash or check payment.>",
"shipping_info": {
"name": {
"given_name": "Stephanie",
"surname": "Meyers"
},
"address": {
"address_line_1": "1234 Main Street",
"admin_area_2": "Anytown",
"admin_area_1": "CA",
"postal_code": "98765",
"country_code": "US"
}
}
}
curl --location -g --request POST 'https://api-m.sandbox.paypal.com/v2/invoicing/invoices/{{invoice_id}}/payments' \
--header 'PayPal-Request-Id: ' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '{
"method": "CASH",
"payment_date": "2022-02-07",
"amount": {
"currency_code": "USD",
"value": "10.00"
},
"type": "EXTERNAL",
"transaction_type": "CAPTURE",
"note": "<A note associated with an external cash or check payment.>",
"shipping_info": {
"name": {
"given_name": "Stephanie",
"surname": "Meyers"
},
"address": {
"address_line_1": "1234 Main Street",
"admin_area_2": "Anytown",
"admin_area_1": "CA",
"postal_code": "98765",
"country_code": "US"
}
}
}'
{
"payment_id": "EXTR-1GG075177H628991L"
}