Path Parameters:
Name | Type | Requirement | Description |
---|---|---|---|
identifier | string | - | The identifier of the customer (aka token) |
204
ShowHide{'code': 204, 'message': 'No Content', 'errors': null}
403
ShowHide{'code': 403, 'message': 'You do not have the necessary permissions', 'errors': null}
404
ShowHide{'code': 404, 'message': 'Not Found', 'errors': null}
409
ShowHide{'code': 409, 'message': 'Conflict', 'errors': null}
Path Parameters:
Name | Type | Requirement | Description |
---|---|---|---|
merchantConfigKey | string | - | Merchant config key |
token | string | - | corresponding token |
POST Parameters:
Name | Type | Requirement | Required | Description |
---|---|---|---|---|
string | - | true | email address of the customer | |
stored_[_a-z0-9]* | string | - | false | customer parameter |
merchant_identifier | string | - | true | merchant identifier |
201
ShowHide{'code': 201, 'message': 'Created', 'errors': null}
403
ShowHide{'code': 403, 'message': 'You do not have the necessary permissions', 'errors': null}
409
ShowHide{'code': 409, 'message': 'Customer with email ... of merchant ... already exists', 'resource': '<resource uri>'}
Other allowed HTTP methods: HEAD
Path Parameters:
Name | Type | Requirement | Description |
---|---|---|---|
identifier | string | - | The identifier of the customer (aka token) |
GET Parameters:
Name | Type | Requirement | Required | Description |
---|---|---|---|---|
merchant_identifier | string | - | true | merchant identifier |
200
ShowHide{
"customer": {
"stored_customer_email": "john.doe@raisenow.com",
"token": "3851ca25fa22a21f1e68558eb33d9a88e8d1d551",
"stored_customer_firstname": "John",
"stored_customer_lastname": "Doe"
}
}
403
ShowHide{'code': 403, 'message': 'You do not have the necessary permissions', 'errors': null}
404
ShowHide{'notfound' : '/vagrant/getunikepayment/app/../jsonresponsefiles/api/v1/customers/identifier/get/file-error.json'}
Other allowed HTTP methods: PUT
Path Parameters:
Name | Type | Requirement | Description |
---|---|---|---|
identifier | string | - | The identifier of the customer (aka token) |
POST Parameters:
Name | Type | Requirement | Required | Description |
---|---|---|---|---|
stored_[_a-z0-9]* | string | - | false | customer parameter |
merchant_identifier | string | - | true | merchant identifier |
204
ShowHide{'code': 204, 'message': 'No Content', 'errors': null}
403
ShowHide{'code': 403, 'message': 'You do not have the necessary permissions', 'errors': null}
404
ShowHide{'code': 404, 'message': 'Not Found', 'errors': null}
409
ShowHide{'code': 409, 'message': 'Conflict', 'errors': null}
Other allowed HTTP methods: GET
Redirects to success_url, error_url or cancel_url. If 3d secure enabled, 3d secure window will be displayed before redirecting to the previous defined URL. If not all mandatory parameters are set, a form will be displayed.
Path Parameters:
Name | Type | Requirement | Description |
---|---|---|---|
stepId | string | pay | Only pay supported yet |
merchantId | string | - | A merchant config (aka API Key). |
POST Parameters:
Name | Type | Requirement | Required | Description |
---|---|---|---|---|
currency | string | - | true | currency |
amount | string | - | true | amount |
error_url | string | - | true | error url |
cancel_url | string | - | true | cancel url |
success_url | string | - | true | success url |
payment_method | string | sms|vis|eca|amx|din|ezs|es|pfc|pef|pex|dd | true | Specifies the payment method. In the glossary you find some further details about the allowed acronyms. |
test_mode | string | true|false | true | test mode |
mobile_mode | string | true|false | true | mobile mode |
language | string | - | true | language |
msisdn | string | - | false | Valid cell phone number starting with +41 |
keyword | string | - | false | Which SMS keyword should be used for the payment |
sid | string | \d+ | false | Shortnumber of a SMS payment |
css_url | string | - | true | Absolute URL to a CSS file, which should be used to style the credit card form. The CSS file will be loaded via e-payment platform and not directly from the origin. This mechanism should prevent cross-domain problems. Be sure to use absolute URLs within the CSS. If you want to load the CSS directly from origin, add the query parameter use_proxy to the URL and set it to false. |
recurring | string | true|false | false | Indicates a recurring or one-time payment. |
recurring_interval | string | - | false | If the payment is a recurring payment, the interval has to be specified. The interval is defined as in crontab except that minutes and hours may not be specified. Additionally, argument L is allowed to specify the last day of a month: L * * |
stored_customer_email | string | - | false | If the payment is a recurring payment a valid customer’s email address has to be defined. |
301
400
ShowHideUrl-parameter step needs to be set to 'pay'
400
ShowHideA valid (error_url | merchantConfigKey) needs to be provided
400
ShowHidemerchantConfig is disabled
400
ShowHidethe transaction_id parameter must be unique
400
ShowHideneed to set a valid email address in stored_customer_email parameter
400
ShowHideno access to the specified payment_method
400
ShowHiderecurring payments not available for requested payment_method
400
ShowHideparameter (payment_method | mobile_mode | immediate_execution | recurring_interval | subscription_token | test_mode | amount | currency | success_url | cancel_url) is invalid
400
ShowHidevarious messages depending on the payment provider
404
ShowHideA valid error_url needs to be provided
Returns all Merchant Parameters
GET Parameters:
Name | Type | Requirement | Required | Description |
---|---|---|---|---|
transaction-id | string | - | true | epp transaction id |
merchant-config | string | - | true | merchant config |
200
ShowHide{
"_stored_campaign_id": "",
"_stored_campaign_subid": "",
"_stored_rnw_purpose_text": "",
"_stored_purpose": "zweck1",
"_stored_customer_salutation": "mr",
"_stored_customer_firstname": "john",
"_stored_customer_lastname": "doe",
"_stored_customer_email": "john.doe@raisenow.com",
"_stored_customer_message": "",
"_stored_customer_company": "",
"_stored_customer_street": "",
"_stored_customer_street_number": "",
"_stored_customer_street2": "",
"_stored_customer_pobox": "",
"_stored_customer_zip_code": "",
"_stored_customer_city": "",
"_stored_customer_country": "CH",
"_stored_foo": "bar"
}
400
ShowHideNo merchant-config parameter defined
400
ShowHideNo merchant-trx-id or transaction-id parameter defined
400
ShowHideCould not find transaction
Returns transaction information including status as json
GET Parameters:
Name | Type | Requirement | Required | Description |
---|---|---|---|---|
transaction-id | string | - | true | epp transaction id |
merchant-config | string | - | true | merchant config |
200
ShowHide{
"transaction_id": null,
"epp_transaction_id": "c2w8114132js65159",
"created": "2014-10-14 07:39:19",
"amount": 500,
"currency": "chf",
"payment_method": "VIS",
"payment_provider": "datatrans",
"user_ip": "10.189.247.2",
"user_agent": "Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/37.0.2062.124 Safari\/537.36",
"http_referer": "https:\/\/mydomain.com\/",
"mobile_mode": "false",
"error_url": "https:\/\/mydomain.com\/error",
"success_url": "mydomain.com\/success",
"cancel_url": "mydomain.com\/cancel",
"test_mode": "true",
"language": "de",
"card_holder_name": "test",
"expy": "15",
"expm": "12",
"internal_return_executions": "1",
"used_redirect_url": "https:\/\/dds-widget.getunik.net\/widgets\/lema\/ddswidget.html",
"creditable": "true",
"credited_at": "2014-10-14 07:40:06",
"stored_customer_salutation": "mr",
"stored_customer_firstname": "test",
"stored_customer_lastname": "foo",
"status": [
{
"created": "2014-10-14 07:39:19",
"statusName": "new"
},
{
"created": "2014-10-14 07:39:20",
"statusName": "success_from_payment_provider"
},
{
"created": "2014-10-14 07:39:20",
"statusName": "success"
},
{
"created": "2014-10-14 07:39:20",
"statusName": "final_success"
}
]
}
400
ShowHideNo merchant-config parameter defined
400
ShowHideNo merchant-trx-id or transaction-id parameter defined
400
ShowHideCould not find transaction
Adds a merchant parameter to the transaction identified by transaction-id and merchant-config aka ApiKey
POST Parameters:
Name | Type | Requirement | Required | Description |
---|---|---|---|---|
transaction-id | string | - | true | epp transaction id |
merchant-config | string | - | true | merchant config |
parameter-name | string | - | true | name of the parameter |
parameter-value | string | - | true | value of the parameter |
merchant-trx-id | string | - | false | merchant transaction id |
200
ShowHideParameter with name <Name> already exists
202
400
ShowHideCould not find transaction
400
ShowHideNo merchant-config parameter defined
400
ShowHideNo transaction-id or merchant-trx-id parameter defined
400
ShowHideNo parameter-name parameter defined
400
ShowHideparameter-name does not start with 'stored_'
Cancels a transaction
POST Parameters:
Name | Type | Requirement | Required | Description |
---|---|---|---|---|
transaction-id | string | - | true | epp transaction id |
merchant-config | string | - | true | merchantconfig |
Issues a full refund of the entire amount (only works for paypal and datatrans).
Path Parameters:
Name | Type | Requirement | Description |
---|---|---|---|
merchantConfig | string | - | A merchant config identifier (API Key). |
transactionId | string | - | An EPP transaction ID. |
200
ShowHide{
"status": "success",
"original_epp_transaction_id": "c2niw14134xcrp10461",
"refund_epp_transaction_id": "c20q214134ubt68294"
}
200
ShowHide{
"status": "error",
"original_epp_transaction_id": "c2niw14134xcrp10465",
"refund_epp_transaction_id": "c256p1413418c68427",
"error_code": "04-72",
"error_type": "datatrans: amount exceeded",
"error_detail": "amount not valid."
}
400
ShowHideyou need to define a valid merchant-config and transaction-id
400
ShowHidemerchant-config is disabled
Issues a refund of a specified amount (only works for paypal and datatrans).
Path Parameters:
Name | Type | Requirement | Description |
---|---|---|---|
merchantConfig | string | - | A merchant config identifier (API Key). |
transactionId | string | - | An EPP transaction ID. |
amount | string | - | The ammount to refund or ‘0’ to use the full ammount of the original transaction. |
200
ShowHide{
"status": "success",
"original_epp_transaction_id": "c2niw14134xcrp10461",
"refund_epp_transaction_id": "c20q214134ubt68299"
}
200
ShowHide{
"status": "error",
"original_epp_transaction_id": "c2niw14134xcrp10465",
"refund_epp_transaction_id": "c256p1413418c68427",
"error_code": "04-72",
"error_type": "datatrans: amount exceeded",
"error_detail": "amount not valid."
}
400
ShowHideyou need to define a valid merchant-config and transaction-id
400
ShowHidemerchant-config is disabled
Send money to an email address. PayPal Account has to be created.
Path Parameters:
Name | Type | Requirement | Description |
---|---|---|---|
merchantConfig | string | - | - |
POST Parameters:
Name | Type | Requirement | Required | Description |
---|---|---|---|---|
amount | int | \d+ | true | epp transaction id |
receiver | string | - | true | merchant config |
subject | string | - | true | merchant config |
currency | string | 2 digit iso code | true | currency |
test_mode | string | true|false | true | test mode |
200
ShowHide{
"status": "success",
"epp_transaction_id": "c2niw14134xcrp104sdd"
}
400
ShowHideinvalid test_mode defined
400
ShowHideinvalid amount defined
400
ShowHideinvalid receiver email address defined
400
ShowHideinvalid currency defined
400
ShowHideNo merchant-config parameter defined
400
ShowHideNo valid merchant-config parameter defined
400
ShowHideMerchantConfig is disabled
400
ShowHide{
"status": "error",
"error_message": "foo bar",
"error_detail": "xy",
"epp_transaction_id": "c2niw14134xcrp104sdd"
}
Retrieves a list of transactions and meta data based on the defined filters and facets.
If sort, filters and facets parameters have to be used in an array whereas foreach filter an index has to be defined.
E.g. sort[0][order], filter[0][field_name], facets[0][name]
Path Parameters:
Name | Type | Requirement | Description |
---|---|---|---|
merchantIdentifier | - | - | - |
Filters:
Name | Type | Requirement | Description |
---|---|---|---|
lang | string | en|de|fr|it | language |
page | int | \d+ | which page (pagination) |
records_per_page | int | \d+ | specifies how many records per page |
sort[0][field_name] | string | - | name of the field to sort on |
sort[0][order] | string | asc|desc | - |
filters[0][field_name] | string | - | name of the field/attribue, 'all’,or a comma separated list of fieldnames (‘all’ and comma seperated list is only for fulltext type) |
filters[0][type] | string | term|range|date_range|fulltext | type of the search |
filters[0][from] | string | - | lower limit of the range |
filters[0][to] | string | - | upper limit of the range |
filters[0][value] | string | - | value to search for |
filters[0][filter_group] | int | \d+ | defines the filter group a filter belongs to |
facets[0][name] | string | - | unique (per search) identifier for the facet |
facets[0][field_name] | string | - | name of the field/attribue |
facets[0][type] | string | term|range|date_range|stats|histogram|date_histogram | (statistic filters have no size,order or ranges) |
facets[0][size] | string | - | how many occurences, Description TBD (only for termFacet, for range facets size is equal the number of ranges) |
facets[0][order] | string | count|term|reverse_count|reverse_term | (only for term, ranges are unsorted) |
facets[0][interval] | string | - | interval for buckets for histogram facets |
facets[0][timezone] | string | - | the timezone offset i.e(+2:0) from GMT. (only for date_histogram) |
facets[0][factor] | string | - | a multiplication factor for date_histogram key_field (i.e if the timestamp is without millisecond then the factor should be 10000) |
facets[0][key_field] | string | - | key field for histogram and date_histogram |
facets[0][value_field] | string | - | value field for histogram and date_histogram |
facets[0][ranges] | string | - | Array of ranges (only for range/date_range) |
facets[0][ranges[0][from] | string | - | lower limit of the range |
facets[0][ranges[0][to] | string | - | upper limit of the range |
200
ShowHide{
"result": {
"filters": [
{
"field_name": "payment_method",
"type": "term",
"value": "vis"
},
{
"field_name": "created",
"type": "date_range",
"from": "2012.12.01",
"to": "2012.12.1400: 00: 00"
}
],
"facets": [
{
"name": "amounts",
"type": "term",
"missing": 410,
"total": 67594,
"other": 15220,
"terms": [
{
"term": 90,
"count": 32839
},
{
"term": 500,
"count": 8420
},
{
"term": 1000,
"count": 5600
},
{
"term": 2000,
"count": 2802
},
{
"term": 5000,
"count": 2713
}
]
},
{
"name": "date_histogram",
"type": "histogram",
"entries": [
{
"key": 1262160000,
"min": 1262307584,
"max": 1262519759,
"mean": 1262393889.1451,
"count": 255,
"total_count": 255,
"total": 321910441732
}
]
},
{
"name": "amount_ranges",
"type": "range",
"ranges": [
{
"from": 1,
"to": 10,
"min": 1,
"max": 6,
"mean": 3.2674418604651,
"count": 172,
"total_count": null,
"total": 562
},
{
"from": 11,
"to": 100,
"min": 11,
"max": 99,
"mean": 88.817308842886,
"count": 33428,
"total_count": null,
"total": 2968985
}
]
}
],
"transactions": [
{
"epp_transaction_id": "aslfjasf2384u24",
"amount": 500,
"currency": "chf",
"payment_method": "vis",
"created": "2012.12.1213: 22: 22",
"merchant-config": "sjldkf342",
"last_status": "final_succes",
"stored_customer_lastname": "muster"
}
],
"additional_info": {
"lang": "en",
"page": 20,
"total_pages": 120,
"records_per_page": 50,
"total_amount_chf": 12308,
"total_amount_eur": 123,
"total_amount_usd": 11
}
}
}
500
ShowHideinternal server error
Other allowed HTTP methods: HEAD
Gets a ReconciliationStatement.
Path Parameters:
Name | Type | Requirement | Description |
---|---|---|---|
identifier | - | - | - |
Other allowed HTTP methods: PUT
Updates ReconciliationStatement crmc transfer status. Cannot be used to update reconciliation data.
Path Parameters:
Name | Type | Requirement | Description |
---|---|---|---|
identifier | string | - | ReconciliationStatement identifier |
POST Parameters:
Name | Type | Requirement | Required | Description |
---|---|---|---|---|
crmc_transfer_status | float | - | true | - |
crmc_transfer_detail | string | - | true | - |
Returns a json array containing information about a subscription (customer object inside the subscription is mistakenly json encoded)
Path Parameters:
Name | Type | Requirement | Description |
---|---|---|---|
merchantConfig | string | - | A merchant config identifier (API Key). |
subscriptionToken | string | - | An EPP subscription token. |
200
ShowHide{
"masked_cc": "424242xxxxxx4242",
"interval": "01 00 L *\/3 *",
"customer_token": "9d5d995eea5db2c6c43f81c621610d0dfabddsdfsf",
"status": "active",
"success_url": "https:\/\/test.org\/success",
"cancel_url": "https:\/\/test.org\/cancel",
"error_url": "https:\/\/\/test.org\/error",
"payment_method": "vis",
"test_mode": "true",
"currency": "chf",
"amount": "6000",
"immediate_execution": "true",
"language": "de",
"mobile_mode": "false",
"stored_campaign_id": "1234",
"stored_campaign_subid": "1234",
"stored_rnw_purpose_text": "purpose 1",
"stored_purpose": "purpose1",
"stored_recurring_interval": "quarterly \/ immediate",
"payment_provider": "datatrans",
"expm": "12",
"expy": "15",
"customer": "{\"stored_customer_street\":\"doe\",\"stored_customer_street2\":\"john\",\"stored_customer_zip_code\":\"1234\",\"stored_customer_city\":\"test\",\"stored_customer_message\":\"test\",\"stored_customer_donation_receipt\":\"on\",\"stored_customer_salutation\":\"mr\",\"stored_customer_firstname\":\"john\",\"stored_customer_lastname\":\"ggg\",\"stored_customer_country\":\"CH\",\"stored_customer_email\":\"john.doe@raisenow.com\",\"token\":\"9d5d995eea5db2c6c43f81c621fsdfsfd\"}"
}
400
ShowHideNo subscription-token provided
400
ShowHideNo merchant-config provided
400
ShowHideInvalid subscription-token provided
500
ShowHideError in SubscriptionInfo
Cancels a subscription
Path Parameters:
Name | Type | Requirement | Description |
---|---|---|---|
merchantConfig | string | - | A merchant config identifier (API Key). |
subscriptionToken | string | - | An EPP subscription token. |
Charges a subscription regardless of the subscription interval
Path Parameters:
Name | Type | Requirement | Description |
---|---|---|---|
merchantConfig | string | - | A merchant config identifier (API Key). |
subscriptionToken | string | - | An EPP subscription token. |
POST Parameters:
Name | Type | Requirement | Required | Description |
---|---|---|---|---|
asynchronous | boolean | - | false | if subscription should be charged asynchronously. If ommited ‘false’ is assumed. |
202
ShowHidecharge pending
202
ShowHidecharge successful
202
ShowHidecharge failed
400
ShowHideNo subscription-token provided
400
ShowHideNo merchant-config provided
400
ShowHideInvalid subscription-token provided
500
ShowHideError while charging the subscription
Generated by aglio on 30 Jul 2015