Build payments into your product with MyTPE Pay. Start integrating →
Logo
Reference

Statuses & enums

Every status and enumerated value used across MyTPE Pay resources, in one place.

This page is the single source of truth for every enumerated value the API returns. Each API resource links here for the enums it uses. Values are the exact strings sent and accepted by the API.

KYC

Identifications, brands, and bank accounts all share one review status. When refused, the reason field explains why.

ValueMeaning
pendingSubmitted, awaiting MyTPE review.
acceptedApproved — can back a payment instance.
refusedRejected. Read reason, fix, and resubmit.

Onboarding status

trader.onboarding_changed webhooks report the trader's overall KYC progress.

ValueMeaning
not_startedNo KYC submitted yet.
kyc_in_progressKYC partially filled in.
kyc_pendingKYC submitted, awaiting review.
kyc_rejectedKYC was rejected.
kyc_approvedKYC fully approved.
suspendedAccount suspended.
closedAccount closed.

Payment instance

A payment instance carries two independent enums.

acceptance_status (SATIM license)

The instance can only accept payments when this is ready.

ValueMeaning
pending_documentsDocuments still required.
documents_submittedSubmitted, under review.
rejectedLicense rejected. Read acceptance_reason.
readyApproved — the instance can accept payments.

status (operational)

ValueMeaning
activeOperating normally.
suspendedTemporarily disabled; cannot accept payments.

A payment link uses three enums.

status (lifecycle)

ValueMeaning
draftCreated but not yet payable.
activePublished and accepting payments.
pausedTemporarily not accepting payments.
exhaustedUsage limit reached (terminal).
expiredPast its window / expiry (terminal).
archivedPermanently closed (terminal).

amount_mode

ValueMeaning
fixedA single set amount.
openPayer chooses, optionally within min_amount/max_amount.

usage_mode

ValueMeaning
one_shotOne payment, then exhausted.
limitedUp to max_uses payments, then exhausted.
reusableUnlimited until archived.
capped_amountCloses when total_collectedtarget_amount.
time_windowPayable only between starts_at and ends_at.
whitelistOnly listed allowed_payers may pay.

Transaction

A transaction represents a single payment attempt (a link payment or an instance activation). These are the values surfaced in transaction.* webhooks.

status

ValueMeaning
processingStarted, awaiting the gateway result.
pendingAwaiting confirmation (e.g. offline proof review).
paidPayment succeeded.
failedAnything not paid/pending/processing — refused, timed out, cancelled, error.

The success value is paid, not Completed. The gateway never returns Completed/Failed; filtering on those silently matches nothing.

Payment method

ValueMeaning
freeNo payment required.
onlineCard payment via the gateway redirect (form_url).
bank_transferSettled by bank transfer; needs proof + manual confirmation.
chequeSettled by cheque; needs proof + manual confirmation.

confirmation_status

For methods that require manual verification.

ValueMeaning
requires_verificationAwaiting an officer's check.
confirmedVerified and accepted.
failedVerification failed.
rejectedRejected by the reviewer.

Gateway types

The processor behind an online transaction.

ValueProvider
satimSatim.dz
satim_epgSatim EPG
mastercardMastercard
poste_dzPoste.dz

Forms

Form status

ValueMeaning
draftEditable; cannot be attached to a link.
publishedLive; can be attached to payment links.
archivedRetired.

Field types

The data_type of a form field.

ValueRenders as
stringSingle‑line text.
textMulti‑line text.
integer / number / decimalNumeric input.
boolean / toggleCheckbox / switch.
emailEmail input.
phonePhone input.
urlURL input.
selectSingle‑choice dropdown. (needs options)
multi_selectMulti‑choice → array. (needs options)
radioSingle choice. (needs options)
checkboxMulti choice → array. (needs options)
date / time / datetimeDate/time pickers.

multi_select and checkbox store an array of values. select, multi_select, radio, and checkbox require an options array of { value, label }.

Webhook events

Event types delivered by webhooks. The live catalogue is at GET /webhooks/events.

Transaction

EventFires when
transaction.createdA transaction is opened.
transaction.processingIt enters processing.
transaction.pendingIt awaits confirmation.
transaction.paidPayment succeeds.
transaction.failedPayment ends in any non‑success state.

Payment instance

EventFires when
payment_instance.createdAn instance is requested.
payment_instance.activatedIt becomes active.
payment_instance.suspendedIt is suspended.
payment_instance.acceptance_changedIts acceptance_status changes.
payment_instance.updatedIt is updated.
payment_instance.deletedIt is deleted.
payment_instance.restoredA deleted instance is restored.
EventFires when
payment_link.createdA link is created.
payment_link.publishedIt is published.
payment_link.pausedIt is paused.
payment_link.resumedIt is resumed.
payment_link.updatedIt is updated.
payment_link.archivedIt is archived.
payment_link.paidA payment against it succeeds.
payment_link.exhaustedIt reaches its usage/amount limit.
payment_link.expiredIt passes its window/expiry.

Form & KYC

EventFires when
form.submittedA payer submits an attached form.
identification.approved / identification.rejectedAn identification is reviewed.
brand.approved / brand.rejectedA brand is reviewed.
bank_account.approved / bank_account.rejectedA bank account is reviewed.
trader.onboarding_changedThe trader's onboarding status changes.

On this page