-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcheckout-api.yaml
More file actions
1514 lines (1509 loc) · 47.8 KB
/
checkout-api.yaml
File metadata and controls
1514 lines (1509 loc) · 47.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.3
info:
title: Tebex Checkout API
description: |-
The Checkout APIs are designed to allow our creators to use the Tebex Checkout flow and payment acceptance capabilities without the need to set up a Tebex-powered webstore. Using these APIs allows you to create baskets with custom products (as opposed to pre-created products on our webstore platform), and send customers directly to the checkout flow to proceed with payment options.
You must receive prior authorisation before the Checkout API is enabled on your account. Please contact customer support or your account manager to discover if you qualify to use the Checkout API before beginning integration.
termsOfService: https://tebex.io/terms-creator-agreement
contact:
email: tebex-integrations@overwolf.com
license:
name: MIT
url: https://opensource.org/license/mit
version: 1.1.4
servers:
- url: https://checkout.tebex.io/api
tags:
- name: Ident
description: A string identifier representing the basket
- name: Baskets
description: To start a transaction, a basket must be created. The basket, similar to a standard eCommerce basket will contain the items that the customer is purchasing.
- name: Recurring Payments
description: Payments with reference IDs like `tbx-r-`. Can be paused, reeactivated, and cancelled provided a valid reference id.
- name: Payments
description: Single payments (`tbx-`) can be fetched and refunded with a valid reference id.
security:
- tebex_checkout_auth_basic: []
paths:
/baskets/{ident}:
get:
tags:
- Baskets
operationId: getBasketById
summary: Fetch a basket by its identifier
parameters:
- in: path
name: ident
schema:
type: string
example: 1a-55fff4107740a1f40d844ff89607557f45bfafb3
required: true
description: The basket identifier.
description: |-
Gets the basket associated with the provided identifier.
responses:
'200':
description: |-
Successful response returns the basket.
The `links.payment` property is only returned if the basket has been paid for, and a payment exist with the **complete**/**refund**/**chargeback** status.
The `links.checkout` property is only returned if the basket has not been paid, and is the URL to send the customer to in order to complete payment.
content:
application/json:
schema:
$ref: '#/components/schemas/Basket'
'404':
description: Basket not found.
put:
tags:
- Baskets
summary: Update a basket's details, including expiry date.
parameters:
- in: path
name: ident
schema:
type: string
example: 1a-55fff4107740a1f40d844ff89607557f45bfafb3
required: true
description: The basket identifier.
description: This will update the customer's details on the basket. If the customer is already logged in and a new email is provided, they will be logged out.
operationId: updateBasket
requestBody:
description: The parameters of the basket you wish to update.
content:
application/json:
schema:
type: object
properties:
country:
type: string
nullable: true
name:
type: string
nullable: true
state_id:
type: string
nullable: true
first_name:
type: string
nullable: true
last_name:
type: string
nullable: true
postal_code:
type: string
nullable: true
creator_code:
type: string
nullable: true
complete_auto_redirect:
type: boolean
nullable: true
expires_at:
type: string
format: date-time
description: An ISO8601 formatted date. After this date the basket cannot be used to checkout.
example: 2025-01-27T18:09:51Z
nullable: true
responses:
'200':
description: Basket updated successfully
'404':
description: Basket not found.
/baskets/{ident}/packages:
post:
parameters:
- in: path
name: ident
schema:
type: string
example: 1a-55fff4107740a1f40d844ff89607557f45bfafb3
required: true
description: The basket identifier.
tags:
- Baskets
operationId: addPackage
summary: Add a package to the basket
description: This adds a package (an object describing the product) to the basket `{ident}`. For subscriptions, **only one subscription item may be in a basket at a time**, and it cannot be included with one-time payment items. **This endpoint requires prior approval. Please contact your account manager.**
requestBody:
content:
application/json:
schema:
properties:
package:
$ref: '#/components/schemas/Package'
qty:
type: integer
description: The quantity of `package` in this basket. This is not the total quantity of overall items in the basket.
example: 2
type:
type: string
enum: [single,subscription]
example: single
description: The type of payment, either `single` for one-time payments or `subscription`.
required: [single]
revenue_share:
type: array
description: An array of payment destination objects describing how the purchase should be split between multiple wallets. **Only available with pre-agreement from Tebex.**
items:
$ref: '#/components/schemas/RevenueShare'
responses:
'200':
description: Package is successfully added to the basket, and basket is returned.
content:
application/json:
schema:
$ref: "#/components/schemas/Basket"
'400':
description: Improperly formatted package. See ErrorResponse.
'404':
description: Basket not found.
/baskets/{ident}/packages/{rows.id}:
delete:
parameters:
- in: path
name: ident
schema:
type: string
example: 1a-55fff4107740a1f40d844ff89607557f45bfafb3
required: true
description: The basket identifier.
- in: path
name: rows.id
schema:
type: integer
example: 1
required: true
description: The `id` of the `basket.rows` row to remove.
tags:
- Baskets
operationId: removeRowFromBasket
summary:
Remove a row from the basket
description:
This will remove the given `{rows.id}` from the basket `{ident}`. The basket must be re-fetched after running to receive updated totals.
responses:
'204':
description: Successfully deleted a row from the basket.
'404':
description: Row or basket not found.
/baskets/{ident}/sales:
post:
parameters:
- in: path
name: ident
schema:
type: string
example: 1a-55fff4107740a1f40d844ff89607557f45bfafb3
required: true
description: The basket identifier.
tags:
- Baskets
operationId: addSaleToBasket
summary:
Add a sale to the basket
description: Adds a `Sale` to the basket with `{ident}`. **Sales cannot be applied to baskets with `revenue_share` set.**
requestBody:
description: Provide a `Sale` as an object to apply it to the basket.
content:
application/json:
schema:
$ref: '#/components/schemas/Sale'
responses:
'200':
description: Successfully adds sale to basket.
content:
application/json:
schema:
$ref: '#/components/schemas/Basket'
'400':
description: Bad request. Improperly formatted Sale or this basket cannot accept sales. See ErrorResponse.
'404':
description: Basket not found.
/checkout:
post:
tags:
- Checkout
operationId: checkout
summary:
Create a checkout request
description: This API call allows the complete checkout flow (create basket, add items, add sale) to be made in a single API call, for when the Seller is managing the basket locally. **This endpoint requires prior approval - please contact your account manager.**
requestBody:
description: Provide a `Basket`, an array of `Packages` to be added to the basket, and an optional `Sale` to complete the full checkout flow in one call. **Only one subscription item may be in the basket at a time.**
content:
application/json:
schema:
required:
- "basket"
- "items"
properties:
basket:
description: An object containing the customer's information, relevant links, and any custom tracking data.
type: object
properties:
first_name:
type: string
last_name:
type: string
email:
type: string
return_url:
type: string
complete_url:
type: string
custom:
type: object
example:
first_name: Neil
last_name: McNeil
email: example@tebex.io
return_url: https://tebex.io
complete_url: https://tebex.io
custom: {
"foo": "bar",
"trackingId": 127,
"list": ["1", "2", "3"]
}
items:
type: array
description: An array of `Packages` in the basket.
items:
$ref: '#/components/schemas/CheckoutItem'
sale:
$ref: '#/components/schemas/Sale'
responses:
'200':
description: Successfully created basket. The basket will be returned with `links` containing the URLs you should direct the customer to in order to complete payment.
content:
application/json:
schema:
$ref: '#/components/schemas/Basket'
'400':
description: Bad Request. See ErrorResponse.
/payments/{txnId}?type=txn_id:
get:
tags:
- Payments
operationId: getPaymentById
summary: Fetch a payment by its transaction ID
description: This will fetch the given payment associated with this transaction id. Single payment transaction IDs begin with `tbx-`
parameters:
- in: path
name: txnId
schema:
type: string
example: tbx-55fff4107740a1f40d844ff89607557f45bfafb3
required: true
description: The payment reference to fetch.
responses:
'200':
description: Payment fetched successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/Payment'
'404':
description: Transaction not found.
/payments/{txnId}/refund?type=txn_id:
post:
tags:
- Payments
operationId: refundPaymentById
summary: Refund a payment by its transaction ID
description: This will refund the given payment associated with this transaction id.
parameters:
- in: path
name: txnId
schema:
type: string
example: tbx-55fff4107740a1f40d844ff89607557f45bfafb3
required: true
description: The payment reference to refund.
responses:
'200':
description: Payment refunded successfully. The payment details are returned.
content:
application/json:
schema:
$ref: '#/components/schemas/Payment'
'422':
description: The payment cannot be refunded. Payments can only be refunded when a payment's `status` is Completed.
'404':
description: Payment not found.
/recurring-payments/{reference}:
get:
tags:
- Recurring Payments
operationId: getRecurringPayment
summary: Fetch a recurring payment (subscription) by its reference
parameters:
- in: path
name: reference
schema:
type: string
example: tbx-r-55fff4107740a1f40d844ff89607557f45bfafb3
required: true
description: The recurring payment reference to fetch.
responses:
'200':
description: Successfully fetched recurring payment.
content:
application/json:
schema:
$ref: '#/components/schemas/RecurringPayment'
'404':
description: Recurring payment not found.
put:
tags:
- Recurring Payments
operationId: updateSubscription
summary: Update a subscription with a new product / amount to pay - replacing the existing product
description: |-
If the new subscription amount is higher than the existing amount, a pro-rata charge will be made to cover the cost of the new price up until the next billing date.
**This endpoint requires prior approval - please contact your account manager.**
parameters:
- in: path
name: reference
schema:
type: string
example: tbx-r-55fff4107740a1f40d844ff89607557f45bfafb3
required: true
description: The recurring payment reference to fetch.
requestBody:
content:
application/json:
schema:
type: object
properties:
items:
type: array
description: An array containing the items to be added to the recurring payment. **Only 1 item is supported at this time.**
items:
type: object
properties:
type:
type: string
enum: [single, subscription]
example: subscription
description: The type of payment, either `single` for one-time payments or `subscription`.
qty:
type: number
example: 1
revenue_share:
type: array
nullable: true
items:
type: object
example: []
package:
$ref: '#/components/schemas/Package'
responses:
'200':
description: Successfully updated subscription. The updated `RecurringPayment` is returned.
content:
application/json:
schema:
$ref: '#/components/schemas/RecurringPayment'
'400':
description: Bad Request.
'404':
description: Recurring payment not found.
delete:
tags:
- Recurring Payments
summary: Cancel a recurring payment
description: This cancels the recurring payment for the reference provided. Recurring payment references start with `tbx-r-`
operationId: cancelRecurringPayment
parameters:
- in: path
name: reference
schema:
type: string
example: tbx-r-55fff4107740a1f40d844ff89607557f45bfafb3
required: true
description: The recurring payment reference to cancel.
responses:
'200':
description: Recurring payment cancelled successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/RecurringPayment'
'404':
description: Recurring payment not found.
/recurring-payments/{reference}/status:
put:
tags:
- Recurring Payments
operationId: updateRecurringPayment
summary: Pause or reactivate a recurring payment
parameters:
- in: path
name: reference
schema:
type: string
example: tbx-r-55fff4107740a1f40d844ff89607557f45bfafb3
required: true
description: The recurring payment reference to update.
requestBody:
content:
application/json:
schema:
required:
- "status"
properties:
status:
type: string
enum: [Paused,Active]
description: Your desired state of the recurring payment. Provide `Paused` with `paused_until` to pause a recurring payment. Otherwise, provide `Active` to resume a recurring payment.
example: Paused
paused_until:
type: string
description: "To pause a payment, provide a ISO8601 formatted date on which the payment should be reactivated."
example: 2025-01-27T16:43:53.000000Z
responses:
'200':
description: Successfully paused or reactivated a payment. The `RecurringPayment` is returned.
content:
application/json:
schema:
$ref: '#/components/schemas/RecurringPayment'
'422':
description: Unprocessible Entity. An invalid status was provided or the recurring payment cannot be processed. See ErrorResponse.
'404':
description: Recurring payment not found.
/baskets:
post:
tags:
- Baskets
summary: Create a basket that can be used to pay for items
description: This will create and return a `Basket` that can be paid for by redirecting the user to `links.checkout`
operationId: createBasket
requestBody:
description: Create a basket, returning the full basket object and payment link.
content:
application/json:
schema:
type: object
properties:
return_url:
type: string
description: The URL a customer can return to without completing checkout
example: "https://example.tebex.io/"
complete_url:
type: string
description: URL the customer can return to after completing payment
example: "https://example.tebex.io/complete"
custom:
type: object
description: Any custom data to be passed through the request. This will be returned in a post-completion webhook.
example: {
foo: bar,
}
first_name:
type: string
description: The first name of the customer
example: Neil
last_name:
type: string
description: The last name of the customer
example: McNeil
email:
type: string
description: The email address of the customer
example: example@tebex.io
# expires_at:
# type: string
# description: An ISO8601 formatted date. After this date the basket cannot be used to checkout.
# example: 2025-01-27T18:09:51Z
complete_auto_redirect:
type: boolean
description: Automatically redirect to the complete_url provided
example: true
country:
type: string
description: An ISO 3166-1 alpha-2 character code representing the customer's country.
example: US
creator_code:
type: string
description: The creator code is used to share a percentage of the payment with another party. See more about creator codes at https://docs.tebex.io/creators/tebex-control-panel/engagement/creator-codes
example:
ip:
type: string
description: The IP address of the customer using this basket. Provide the IP if creating a basket on your server backend.
example: 1.2.3.4
responses:
'200':
description: Basket created successfully
content:
application/json:
schema:
$ref: "#/components/schemas/Basket"
components:
schemas:
ErrorResponse:
type: object
properties:
type:
description: A URI reference [RFC3986] that identifies the
problem type. This specification encourages that, when
dereferenced, it provide human-readable documentation for the
problem type (e.g., using HTML [W3C.REC-html5-20141028]). When
this member is not present, its value is assumed to be
"about:blank".
title:
type: string
description: A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization
example: Bad Request
status:
type: integer
description: The HTTP status code generated by the origin server for the occurrence of the problem.
example: 400
detail:
type: string
description: A human-readable explanation specific to this occurrence of the problem.
example: Parameter 'first_name' is required.
instance:
type: string
description: A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced
example: /path/to/ref
CheckoutItem:
type: object
description: An item added to a basket as part of the `/checkout` request.
properties:
package:
$ref: '#/components/schemas/Package'
example:
price: 1.27
name: 1000 Gold
GiftCard:
type: object
Discount:
type: object
Coupon:
type: object
Basket:
type: object
properties:
ident:
type: string
example: 1a-55fff4107740a1f40d844ff89607557f45bfafb3
expire:
type: string
example: 2022-10-25 15:15:40
price:
type: number
format: float
example: 1.27
priceDetails:
$ref: '#/components/schemas/PriceDetails'
isPaymentMethodUpdate:
type: boolean
example: false
returnUrl:
type: string
nullable: true
example: null
complete:
type: boolean
example: false
tax:
type: number
format: int32
username:
type: string
example: null
nullable: true
email_immutable:
type: boolean
example: false
discounts:
type: array
items:
$ref: '#/components/schemas/Discount'
coupons:
type: array
items:
$ref: '#/components/schemas/Coupon'
giftcards:
type: array
items:
$ref: '#/components/schemas/GiftCard'
address:
$ref: '#/components/schemas/Address'
rows:
type: array
items:
$ref: "#/components/schemas/BasketRow"
fingerprint:
type: string
example: ""
description: Browser fingerprint to identify the user
nullable: true
creator_code:
type: string
description: The creator code is used to share a percentage of the payment with another party. See more about creator codes at https://docs.tebex.io/creators/tebex-control-panel/engagement/creator-codes
roundup:
type: boolean
example: false
nullable: true
cancel_url:
type: string
example: https://tebex.io
complete_url:
type: string
nullable: true
example: null
complete_auto_redirect:
type: boolean
example: false
recurring_items:
type: array
items:
type: object
payment:
type: object
$ref: "#/components/schemas/Payment"
custom:
type: object
nullable: true
example:
foo: bar
ref: 1234
links:
$ref: "#/components/schemas/BasketLinks"
Package:
type: object
properties:
name:
type: string
description: The name of the item being purchased. This should be user-friendly as it is shown to the customer on checkout and receipts.
example: 1000 Gold
price:
type: number
format: float
example: 1.27
description: A float (decimal describing the price of the package in your account currency)
type:
type: string
enum: [single, subscription]
example: subscription
qty:
type: integer
example: 1
expiry_period:
type: string
enum: [day, month, year]
description: The renewal period of this item
example: month
expiry_length:
type: integer
description: An integer representing the number of `expiry_periods` that make up the renewal period.
example: 3
custom:
type: object
description: A map of data that is passed back to you via the webhook (for example, a tracking ID)
example:
{foo: 'bar'}
BasketRow:
type: object
properties:
id:
type: integer
example: 173125385
basket:
type: integer
example: 725572301
description: Numeric basket ID
package:
type: integer
nullable: true
example: null
description: Package ID associated with this item
override:
type: integer
example: 0
description: Package ID associated with this item
quantity:
type: integer
example: 2
server:
type: integer
nullable: true
example: null
price:
type: number
format: float
example: 1.27
gift_username_id:
type: integer
nullable: true
example: null
options:
type: object
nullable: true
example: null
recurring:
type: boolean
example: false
recurring_period:
type: string
nullable: true
example: null
recurring_next_payment_date:
type: string
format: date-time
nullable: true
example: null
meta:
type: object
properties:
name:
type: string
example: "1000 Gold"
rowprice:
type: number
format: float
example: 2.54
initialprice:
type: number
format: float
example: 1.27
isCumulative:
type: boolean
example: false
requiredPackages:
type: array
items:
type: integer
example: []
requiresAny:
type: boolean
example: false
category:
type: boolean
example: false
producesGiftCard:
type: boolean
example: false
allowsGiftCards:
type: boolean
example: true
servers:
type: array
items:
type: integer
example: []
limits:
type: object
properties:
user:
type: object
properties:
enabled:
type: boolean
example: false
timestamp:
type: integer
example: 0
limit:
type: boolean
example: false
global:
type: object
properties:
enabled:
type: boolean
example: false
timestamp:
type: integer
example: 0
limit:
type: boolean
example: false
packageExpiryTime:
type: integer
example: 0
hasDeliverables:
type: boolean
example: false
deliverableTypes:
type: array
items:
type: string
example: []
downloadLink:
type: string
example: ""
hasSellerProtection:
type: boolean
example: true
itemType:
type: string
nullable: true
example: null
revenue_share:
type: array
items:
type: number
format: float
example: []
image:
type: string
nullable: true
example: null
realprice:
type: number
format: float
example: 1.27
custom:
type: object
nullable: true
example: null
image_url:
type: string
nullable: true
example: null
recurring_price:
type: number
format: float
nullable: true
example: null
BasketItem:
type: object
description: A package within an existing basket.
properties:
qty:
type: integer
description: The quantity of `package` in this basket. This is not the total quantity of overall items in the basket.
example: 2
type:
type: string
enum: [single,subscription]
example: single
description: The type of payment, either `single` for one-time payments or `subscription`.
revenue_share:
type: array
description: An array of payment destination objects describing how the purchase should be split between multiple wallets. **Only available with pre-agreement from Tebex.**
items:
$ref: '#/components/schemas/RevenueShare'
RevenueShare:
type: object
nullable: true
properties:
wallet_ref:
type: string
example: "centralised_404244_127"
amount:
type: number
format: float
example: 0.50
description: A float (decimal) value representing the amount of this payment in your account currency that is credited to the `wallet_ref`
gateway_fee_percent:
type: number
format: float
example: 50.00
description: A float (decimal) value representing the percentage of the gateway fee that should be dedicated from this wallet’s revenue share. This optional value can be anywhere between 0 - 100.
BasketLinks:
type: object
properties:
payment:
type: string
description: The `links.payment` property is only returned if the basket has been paid for and a payment exists with the `complete`,`refund`, or `chargeback` status.
example: https://checkout.tebex.io/api/payments/tbx-12345
checkout:
type: string
description: The `links.checkout` property is only returned if the basket has not been paid, and is the URL to send the customer to make payment
example: https://checkout.tebex.io/checkout/1a-55fff4107740a1f40d844ff89607557f45bfafb3
PriceDetails:
type: object
properties:
fullPrice:
type: number
format: float
subTotal:
type: number
format: float
discounts:
type: array
items:
type: object #TODO
total:
type: number
format: float
tax:
type: number
format: float
balance:
type: number
format: float
sales:
type: array
items:
$ref: '#/components/schemas/Sale'
giftcards:
type: array
items:
$ref: '#/components/schemas/GiftCard'
recurring:
type: boolean
description: Contains recurring amount. Limited to 1 subscription package in the basket at a time.
username:
type: string
roundUp:
type: number
nullable: true
example:
fullPrice: 1.40
subTotal: 1.27
discounts: []
total: 1.40
surcharges: []
tax: 0.13
balance: 0
sales: []
giftcards: []
roundUp: null
Address:
type: object
properties:
name:
type: string
first_name:
type: string
last_name:
type: string
address:
type: string
email:
type: string
state_id:
type: string
nullable: true
country:
type: string
postal_code:
type: string
example:
name: Ted Tebex
first_name: Ted
last_name: Tebex
address: 37 Broadhurst Gardens, London, United Kingdom, NW6 3QT
email: example@tebex.io
state_id: null
country: UK
postal_code: NW6 3QT
Sale: