# Debit

&#x20;A DB is created by sending a POST request over HTTPS to the `/v1/payments` resource. The request should include all required information such as your authentication credentials, the type of transaction, the amount and the payment information such as card details. A DB request effectively combines a PA and capture request, automatically requesting that the funds are cleared if the authorization was successful.

{% hint style="info" %}
You can use this method to generate transactions in Brazil, Mexico and Colombia.

For transactions in Brazil use currency: BRL, for Mexico: MXN and for Colombia: COL
{% endhint %}

Example:

```
curl https://test.oppwa.com/v1/payments \
 -d "entityId=8a8294184e736012014e78a17a5615ac" \
 -d "amount=92.00" \
 -d "currency=BRL" \
 -d "paymentBrand=VISA" \
 -d "paymentType=DB" \
 -d "card.number=4200000000000000" \
 -d "card.holder=Jane Jones" \
 -d "card.expiryMonth=05" \
 -d "card.expiryYear=2034" \
 -d "card.cvv=123" \
 -H "Authorization: Bearer OGE4Mjk0MTg0ZTczNjAxMjAxNGU3OGExN2E2YTE1YjB8ZjJGRUtacXRCUA=="
```

{% file src="<https://1991843971-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGcOwWYO42hhJYXrYx1%2F-MGheG66QiTS8gPQtjb_%2F-MGhh5G4ROTk3Qa6e3s7%2FDebit.rar?alt=media&token=b488c298-3df1-4624-bcd5-1a3ffa7d10bf>" %}
Debit Json Request
{% endfile %}
