host
Get payment transaction info
Changed onReturns all information about payment transaction.
get/api/v2/host/payment-transactions/{paymentTransactionId}
Request
- Base URLhttps://api.momence.com
- AuthOAuth 2Authorization code/api/v2/auth/authorizePasswordToken URL/api/v2/auth/token
Path parameters
paymentTransactionIdnumber required
Response
Example response
{
"payingMember": {
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"phoneNumber": "1234567890",
"pictureUrl": "https://example.com/picture.jpg"
},
"sales": [
{
"id": 1,
"saleDate": "2021-01-01T00:00:00Z",
"items": [
{
"id": 1,
"saleItemId": 1,
"itemType": "membership",
"itemName": "Monthly Membership for Johns",
"descriptiveItemName": "Monthly Membership for Johns",
"payingMember": {
"id": 1,
"firstName": "John",
"lastName": "Doe"
},
"targetMember": {
"id": 1,
"firstName": "John",
"lastName": "Doe"
},
"session": {
"id": 1,
"name": "Monday Morning Yoga",
"startsAt": "2021-01-01T00:00:00Z",
"endsAt": "2021-01-01T01:00:00Z"
},
"appointment": {
"id": 3,
"name": "Stretching with John"
},
"product": {
"id": 3,
"name": "T-Shirt"
},
"productVariant": {
"id": 3,
"name": "M"
},
"openArea": {
"id": 3,
"name": "Gym A"
},
"quantity": 1,
"unitPriceExcludingTaxInCurrency": "9.99",
"unitTaxAmountInCurrency": "0.43"
}
],
"paymentTransaction": {
"items": [
{
"paymentMethodType": "custom",
"paymentMethodName": "Custom payment method",
"amountInCurrencyWithoutTax": "9.99",
"taxAmountInCurrency": "9.99"
}
]
}
}
]
}Changes
- info
endpoint added
- info